[Spice-devel] [PATCH 27/35] spice-vmc: compiler warning fix on fprintf

alexl at redhat.com alexl at redhat.com
Thu Sep 9 10:16:10 PDT 2010


From: Alon Levy <alevy at redhat.com>

---
 hw/spice-vmc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/hw/spice-vmc.c b/hw/spice-vmc.c
index 1255d46..b9c5eb6 100644
--- a/hw/spice-vmc.c
+++ b/hw/spice-vmc.c
@@ -182,7 +182,7 @@ static void vmc_print_optional_subtypes(void)
     fprintf(stderr, "supported subtypes: ");
     for(i=0; *psubtype != NULL; ++psubtype, ++i) {
         if (i == 0) {
-            fprintf(stderr, *psubtype);
+            fprintf(stderr, "%s", *psubtype);
         } else {
             fprintf(stderr, ", %s", *psubtype);
         }
-- 
1.7.0.1



More information about the Spice-devel mailing list