svn commit: r197333 - head/share/examples/scsi_target
Matt Jacob
mjacob at FreeBSD.org
Sat Sep 19 20:36:43 UTC 2009
Author: mjacob
Date: Sat Sep 19 20:36:43 2009
New Revision: 197333
URL: http://svn.freebsd.org/changeset/base/197333
Log:
Tell about the full name we opened, not the unit.
Obtained from: Sean Bruno
MFC after: 1 month
Modified:
head/share/examples/scsi_target/scsi_target.c
Modified: head/share/examples/scsi_target/scsi_target.c
==============================================================================
--- head/share/examples/scsi_target/scsi_target.c Sat Sep 19 20:25:54 2009 (r197332)
+++ head/share/examples/scsi_target/scsi_target.c Sat Sep 19 20:36:43 2009 (r197333)
@@ -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);
More information about the svn-src-all
mailing list