Skip to contentSkip to conversation

tools/libacpi: Drop useless print messages

PATCH In review Andrew Cooper 3 participants 3 messages Mar 15, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tools/libacpi: Drop useless print messages

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 ~]#

---
CC: Jan Beulich <[email protected]>

---
 tools/libacpi/build.c | 6 ------
 1 file changed, 6 deletions(-)
tools/libacpi/build.c +0 -6
index f9881c9..fa7d14e 100644
@@ -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. */
Signature · 7 lines
2.1.4


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Reviewed-by on v1 1/1
#1 lore raw
Quoted 11 lines · Andrew Cooper

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 ~]#

Thanks, Roger.

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

Acked-by on v1 1/1
#2 lore raw
In reply to Andrew Cooper
Quoted 5 lines
Quoted 1 line
Quoted 1 line · On 15.03.18 at 12:56, <[email protected]> wrote:

Libraries have no buisness using stdout directly, and these have no real value. Dropping them removes the following output when building a PVH guest:

Quoted 8 lines

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

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel