aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2010-11-28 23:10:27 -0600
committerDan Williams <dcbw@redhat.com>2010-11-28 23:10:27 -0600
commitc1232e2534334cacc929733e4d206f3deba5c545 (patch)
treed6a8aad65f24f1567a57a65d8b4d8ab35392ad49 /src
parent888351f2a6f496cfb42c14184ded0adbae246ffb (diff)
serial: print debug data unsigned
Diffstat (limited to 'src')
-rw-r--r--src/mm-at-serial-port.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mm-at-serial-port.c b/src/mm-at-serial-port.c
index 068450d2..3df8681b 100644
--- a/src/mm-at-serial-port.c
+++ b/src/mm-at-serial-port.c
@@ -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++;
}