diff options
author | mjacob <mjacob@FreeBSD.org> | 2009-09-19 20:36:43 +0000 |
---|---|---|
committer | mjacob <mjacob@FreeBSD.org> | 2009-09-19 20:36:43 +0000 |
commit | 2c994692d5d0fe14431b0eb3d0df7fb4b09d1140 (patch) | |
tree | 0e2c0ac924252fc1bdb6c8e3312169b80a3484da /share/examples | |
parent | e116e5b34674772a89c07bd7da66948a5798cdbc (diff) | |
download | FreeBSD-src-2c994692d5d0fe14431b0eb3d0df7fb4b09d1140.zip FreeBSD-src-2c994692d5d0fe14431b0eb3d0df7fb4b09d1140.tar.gz |
Tell about the full name we opened, not the unit.
Obtained from: Sean Bruno
MFC after: 1 month
Diffstat (limited to 'share/examples')
-rw-r--r-- | share/examples/scsi_target/scsi_target.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/share/examples/scsi_target/scsi_target.c b/share/examples/scsi_target/scsi_target.c index 1cf0bf5..52401e1 100644 --- a/share/examples/scsi_target/scsi_target.c +++ b/share/examples/scsi_target/scsi_target.c @@ -293,7 +293,7 @@ main(int argc, char *argv[]) if (targ_fd < 0) errx(1, "Tried to open %d devices, none available", unit); else - warnx("opened /dev/targ%d", unit); + warnx("opened %s", targname); /* The first three are handled by kevent() later */ signal(SIGHUP, SIG_IGN); |