[virt-tools-list] [PATCH libosinfo 10/10] Disable vendor, distro & family display by default

Daniel P. Berrange berrange at redhat.com
Thu Mar 22 11:30:26 UTC 2012


From: "Daniel P. Berrange" <berrange at redhat.com>

To make the output of osinfo-query more managable disable the
display of vendor, distro & family fields. Only short-id,
name, version & id are shown.
---
 tools/osinfo-query.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/tools/osinfo-query.c b/tools/osinfo-query.c
index 8194eb4..9383d03 100644
--- a/tools/osinfo-query.c
+++ b/tools/osinfo-query.c
@@ -58,11 +58,11 @@ static struct OsinfoLabel os_labels[] = {
     { OSINFO_PRODUCT_PROP_VERSION,
       "Version", TRUE, 8 },
     { OSINFO_OS_PROP_FAMILY,
-      "Family", TRUE, 12 },
+      "Family", FALSE, 12 },
     { OSINFO_OS_PROP_DISTRO,
-      "Distro", TRUE, 12 },
+      "Distro", FALSE, 12 },
     { OSINFO_PRODUCT_PROP_VENDOR,
-      "Vendor", TRUE, 25 },
+      "Vendor", FALSE, 25 },
     { OSINFO_PRODUCT_PROP_RELEASE_DATE,
       "Release date", FALSE, 12 },
     { OSINFO_PRODUCT_PROP_EOL_DATE,
-- 
1.7.7.6




More information about the virt-tools-list mailing list