Little kbdmap.c diff
John Baldwin
jhb at FreeBSD.org
Mon Nov 8 10:49:47 PST 2004
On Monday 08 November 2004 04:01 am, Matteo Riondato wrote:
> Hi folks,
>
> I would propose this little patch for usr.sbin/kbdmap/kbdmap.c :
>
> --- kbdmap.c.old Sun Nov 7 21:22:08 2004
> +++ kbdmap.c Sun Nov 7 21:33:53 2004
> @@ -288,7 +288,7 @@
> if (!x11)
> system(kbd_cmd);
>
> - printf("keymap=%s\n", km->keym);
> + fprintf(stderr, "keymap=%s\n", km->keym);
> free(kbd_cmd);
> }
>
>
> With this patch, kbdmap will print user choice on stderr instead of
> stdout. This will make saving user preference really easier for FreeSBIE
> [1] and I think it's such a small thing that nobody would have any
> objection..
>
> [1] FreeSBIE (www.freesbie.org) is a project that aims to develope a
> FreeBSD based LiveCD.
>
> Best Regards
>
> P.S. CC'ed to wollman@ because he's the last one to have commited
> modification to kbdmap.c
Curious as to why printing to stderr helps?
--
John Baldwin <jhb at FreeBSD.org> <>< http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve" = http://www.FreeBSD.org
More information about the freebsd-hackers
mailing list