iprint output should appear on the cec console. Reference: /n/atom/patch/applied2013/ceciprint Date: Wed Dec 4 20:37:46 CET 2013 Signed-off-by: quanstro@quanstro.net --- /sys/src/nix/port/portdat.h Wed Dec 4 20:37:28 2013 +++ /sys/src/nix/port/portdat.h Wed Dec 4 20:37:28 2013 @@ -992,6 +992,14 @@ }; /* + * console flags &c + */ +enum { + Ciprint = 2, /* call this fn from iprint */ + Cntorn = 4, /* change \n to \r\n */ +}; + +/* * performance timers, all units in perfticks */ struct Perf --- /sys/src/nix/port/devcec.c Wed Dec 4 20:37:28 2013 +++ /sys/src/nix/port/devcec.c Wed Dec 4 20:37:28 2013 @@ -910,7 +910,7 @@ static void cecinit(void) { - addconsdev(nil, cecputs, -1, 0); + addconsdev(nil, cecputs, -1, Ciprint); } Dev cecdevtab = { --- /sys/src/nix/port/devcons.c Wed Dec 4 20:37:28 2013 +++ /sys/src/nix/port/devcons.c Wed Dec 4 20:37:28 2013 @@ -10,10 +10,6 @@ enum { Nconsdevs = 64, /* max number of consoles */ - - /* Consdev flags */ - Ciprint = 2, /* call this fn from iprint */ - Cntorn = 4, /* change \n to \r\n */ }; typedef struct Consdev Consdev;