Module Name: src
Committed By: dyoung
Date: Wed Oct 19 22:13:46 UTC 2011
Modified Files:
src/sbin/drvctl: drvctl.c
Log Message:
Don't print the silly header, "Properties for device `xxx0':", before
the device properties if the -n option was given.
To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/sbin/drvctl/drvctl.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/drvctl/drvctl.c
diff -u src/sbin/drvctl/drvctl.c:1.13 src/sbin/drvctl/drvctl.c:1.14
--- src/sbin/drvctl/drvctl.c:1.13 Mon Aug 29 14:34:59 2011
+++ src/sbin/drvctl/drvctl.c Wed Oct 19 22:13:46 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: drvctl.c,v 1.13 2011/08/29 14:34:59 joerg Exp $ */
+/* $NetBSD: drvctl.c,v 1.14 2011/10/19 22:13:46 dyoung Exp $ */
/*
* Copyright (c) 2004
@@ -200,8 +200,11 @@ main(int argc, char **argv)
if (argc == 1) {
xml = prop_dictionary_externalize(data_dict);
- printf("Properties for device `%s':\n%s",
- argv[0], xml);
+ if (!nflag) {
+ printf("Properties for device `%s':\n",
+ argv[0]);
+ }
+ printf("%s", xml);
free(xml);
} else {
for (i = 1; i < argc; i++)