]> git.saurik.com Git - apple/xnu.git/blobdiff - osfmk/console/serial_general.c
xnu-7195.50.7.100.1.tar.gz
[apple/xnu.git] / osfmk / console / serial_general.c
index 7a8cfeb00c86dcaee98413cd24daa8fd9867ee85..62bde9741ec1acdd9c949d31b9628e6415db09ca 100644 (file)
@@ -156,7 +156,7 @@ console_printbuf_putc(int ch, void * arg)
        struct console_printbuf_state * info = (struct console_printbuf_state *)arg;
        info->total += 1;
        if (info->pos < (SERIAL_CONS_BUF_SIZE - 1)) {
-               info->str[info->pos] = ch;
+               info->str[info->pos] = (char)ch;
                info->pos += 1;
        } else {
                /*
@@ -168,7 +168,7 @@ console_printbuf_putc(int ch, void * arg)
                        info->str[info->pos] = '\0';
                        console_write(info->str, info->pos);
                        info->pos            = 0;
-                       info->str[info->pos] = ch;
+                       info->str[info->pos] = (char)ch;
                        info->pos += 1;
                }
        }