]> xenbits.xensource.com Git - people/dariof/xen.git/commitdiff
tools/libacpi: Drop useless print messages
authorAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 15 Mar 2018 11:56:40 +0000 (11:56 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 15 Mar 2018 17:40:41 +0000 (17:40 +0000)
Libraries have no buisness using stdout directly, and these have no real
value.  Dropping them removes the following output when building a PVH guest:

  [root@fusebot ~]# xl create shim.cfg
  Parsing config from shim.cfg
  S3 disabled
  S4 disabled
  CONV disabled
  [root@fusebot ~]#

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
tools/libacpi/build.c

index f9881c96047ffa1a7f1ffd5eb65e424d5b5baca3..fa7d14e0906f967cd01118852ba9a1d62c3cc53b 100644 (file)
@@ -393,8 +393,6 @@ static int construct_secondary_tables(struct acpi_ctxt *ctxt,
         if (!ssdt) return -1;
         memcpy(ssdt, ssdt_s3, sizeof(ssdt_s3));
         table_ptrs[nr_tables++] = ctxt->mem_ops.v2p(ctxt, ssdt);
-    } else {
-        printf("S3 disabled\n");
     }
 
     if ( config->table_flags & ACPI_HAS_SSDT_S4 )
@@ -403,8 +401,6 @@ static int construct_secondary_tables(struct acpi_ctxt *ctxt,
         if (!ssdt) return -1;
         memcpy(ssdt, ssdt_s4, sizeof(ssdt_s4));
         table_ptrs[nr_tables++] = ctxt->mem_ops.v2p(ctxt, ssdt);
-    } else {
-        printf("S4 disabled\n");
     }
 
     if ( config->table_flags & ACPI_HAS_SSDT_LAPTOP_SLATE )
@@ -413,8 +409,6 @@ static int construct_secondary_tables(struct acpi_ctxt *ctxt,
         if (!ssdt) return -1;
         memcpy(ssdt, ssdt_laptop_slate, sizeof(ssdt_laptop_slate));
         table_ptrs[nr_tables++] = ctxt->mem_ops.v2p(ctxt, ssdt);
-    } else {
-        printf("CONV disabled\n");
     }
 
     /* TPM TCPA and SSDT. */