serial: print debug data unsigned
This commit is contained in:
@@ -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++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user