From 0e9d96d74e9d9b39b77a059d9fafbcbdcbc4f9ed Mon Sep 17 00:00:00 2001 From: Matt Jacob Date: Sat, 19 Sep 2009 20:36:43 +0000 Subject: [PATCH] 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(-) 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);