Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sbin/drvctl Don't print the silly header, "Properties for de...
details: https://anonhg.NetBSD.org/src/rev/eb0de4a68dea
branches: trunk
changeset: 770521:eb0de4a68dea
user: dyoung <dyoung%NetBSD.org@localhost>
date: Wed Oct 19 22:13:46 2011 +0000
description:
Don't print the silly header, "Properties for device `xxx0':", before
the device properties if the -n option was given.
diffstat:
sbin/drvctl/drvctl.c | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diffs (23 lines):
diff -r 9876bc29b173 -r eb0de4a68dea sbin/drvctl/drvctl.c
--- a/sbin/drvctl/drvctl.c Wed Oct 19 22:07:09 2011 +0000
+++ b/sbin/drvctl/drvctl.c Wed Oct 19 22:13:46 2011 +0000
@@ -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 @@
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++)
Home |
Main Index |
Thread Index |
Old Index