From 2c994692d5d0fe14431b0eb3d0df7fb4b09d1140 Mon Sep 17 00:00:00 2001 From: mjacob Date: Sat, 19 Sep 2009 20:36:43 +0000 Subject: Tell about the full name we opened, not the unit. Obtained from: Sean Bruno MFC after: 1 month --- share/examples/scsi_target/scsi_target.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'share/examples') 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); -- cgit v1.1