aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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++;
}