diff options
author | Matt Jacob <mjacob@FreeBSD.org> | 2009-09-19 20:36:43 +0000 |
---|---|---|
committer | Matt Jacob <mjacob@FreeBSD.org> | 2009-09-19 20:36:43 +0000 |
commit | 0e9d96d74e9d9b39b77a059d9fafbcbdcbc4f9ed (patch) | |
tree | 0e2c0ac924252fc1bdb6c8e3312169b80a3484da /share/examples/scsi_target | |
parent | 35589fc12f880d1f09a6521e8083dd9aaab377ea (diff) |
Tell about the full name we opened, not the unit.
Obtained from: Sean Bruno
MFC after: 1 month
Notes
Notes:
svn path=/head/; revision=197333
Diffstat (limited to 'share/examples/scsi_target')
-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 1cf0bf5da1e0..52401e104991 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); |