serial: print debug data unsigned

This commit is contained in:
Dan Williams
2010-11-28 23:10:27 -06:00
parent 888351f2a6
commit c1232e2534
+1 -1
View File
@@ -290,7 +290,7 @@ debug_log (MMSerialPort *port, const char *prefix, const char *buf, gsize len)
else if (*s == '\n')
g_string_append (debug, "<LF>");
else
g_string_append_printf (debug, "\\%d", *s);
g_string_append_printf (debug, "\\%u", (guint8) (*s & 0xFF));
s++;
}