When we don't decode type 40 in quiet mode, we shouldn't print the
blank line after it either.
---
 dmidecode.c |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

--- dmidecode.orig/dmidecode.c  2015-04-29 09:53:09.811355846 +0200
+++ dmidecode/dmidecode.c       2015-04-29 09:53:54.299294415 +0200
@@ -4263,8 +4263,9 @@ static void dmi_decode(const struct dmi_
 
                case 40: /* 7.41 Additional Information */
                        if (h->length < 0x0B) break;
-                       if (!(opt.flags & FLAG_QUIET))
-                               dmi_additional_info(h, "");
+                       if (opt.flags & FLAG_QUIET)
+                               return;
+                       dmi_additional_info(h, "");
                        break;
 
                case 41: /* 7.42 Onboard Device Extended Information */


-- 
Jean Delvare
SUSE L3 Support

_______________________________________________
https://lists.nongnu.org/mailman/listinfo/dmidecode-devel

Reply via email to