Module Name:    src
Committed By:   spz
Date:           Sun Aug  2 18:16:09 UTC 2009

Modified Files:
        src/sbin/dkctl: dkctl.c

Log Message:
make dkctl conform to its man page and print the device name on addwedge
when the addition was successful (as well as indicating success).


To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 src/sbin/dkctl/dkctl.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sbin/dkctl/dkctl.c
diff -u src/sbin/dkctl/dkctl.c:1.17 src/sbin/dkctl/dkctl.c:1.18
--- src/sbin/dkctl/dkctl.c:1.17	Sat Feb  7 17:13:32 2009
+++ src/sbin/dkctl/dkctl.c	Sun Aug  2 18:16:08 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: dkctl.c,v 1.17 2009/02/07 17:13:32 uebayasi Exp $	*/
+/*	$NetBSD: dkctl.c,v 1.18 2009/08/02 18:16:08 spz Exp $	*/
 
 /*
  * Copyright 2001 Wasabi Systems, Inc.
@@ -41,7 +41,7 @@
 #include <sys/cdefs.h>
 
 #ifndef lint
-__RCSID("$NetBSD: dkctl.c,v 1.17 2009/02/07 17:13:32 uebayasi Exp $");
+__RCSID("$NetBSD: dkctl.c,v 1.18 2009/08/02 18:16:08 spz Exp $");
 #endif
 
 
@@ -583,6 +583,9 @@
 
 	if (ioctl(fd, DIOCAWEDGE, &dkw) == -1)
 		err(1, "%s: addwedge", dvname);
+	else
+		printf("%s created successfully.\n", dkw.dkw_devname);
+
 }
 
 void

Reply via email to