Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 8 Nov 2004 13:33:54 -0500
From:      John Baldwin <jhb@FreeBSD.org>
To:        freebsd-hackers@FreeBSD.org, rionda@gufi.org
Subject:   Re: Little kbdmap.c diff
Message-ID:  <200411081333.54349.jhb@FreeBSD.org>
In-Reply-To: <1099904496.45709.36.camel@kaiser.sig11.org>
References:  <1099904496.45709.36.camel@kaiser.sig11.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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@FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve"  =  http://www.FreeBSD.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200411081333.54349.jhb>