[PATCH weston] weston-simple-im: Make capitalization consistent in error messages
Bryce Harrington
bryce at osg.samsung.com
Fri Jun 17 16:39:09 UTC 2016
On Thu, Jun 16, 2016 at 09:24:56PM -0600, Yong Bakos wrote:
>
> > On Jun 16, 2016, at 12:11 PM, Bryce Harrington <bryce at osg.samsung.com> wrote:
> >
> > On Thu, Jun 16, 2016 at 11:14:01AM -0500, Derek Foreman wrote:
> >> On 15/06/16 07:59 PM, Bryce Harrington wrote:
> >>> Signed-off-by: Bryce Harrington <bryce at osg.samsung.com>
> >>
> >> Super important work, proudly
> >> Reviewed-by: Derek Foreman <derekf at osg.samsung.com>
> >>
> >> Though maybe we should put . on the end if they're capitalized, make
> >> them complete sentences?
>
> You will think I'm crazy, but I recently sent a patch to the git crew
> about adding a period to some specific git output and, long story short,
> one of their conventions is to not use them at the end of error messages.
>
> Makes me wonder, as mundane as it may sound, if this is a greater (posix/
> unix/linux) convention.
I've seen polices both ways in other projects. I personally don't have
an opinion one way or the other if we're consistent.
One thing to consider is the policy of libraries we use, that might be
issuing warnings and error messages. If we adopt a differing policy
then those will show up as inconsistent.
> Anyway, just wanted to share that silly story, not debate the point, er,
> period.
>
> yong
>
>
> > Maybe, yeah, but I'll leave that to someone else. Looks like there's a
> > lot more formatting/wording inconsistencies in the client error messages.
> >
> > Thanks for the reviews, I've pushed the three weston ones.
> >
> > b01c31b..f013ce9 master -> master
> >
> > Bryce
> >
> >>> ---
> >>> clients/weston-simple-im.c | 6 +++---
> >>> 1 file changed, 3 insertions(+), 3 deletions(-)
> >>>
> >>> diff --git a/clients/weston-simple-im.c b/clients/weston-simple-im.c
> >>> index 4c1d7cf..0ee505a 100644
> >>> --- a/clients/weston-simple-im.c
> >>> +++ b/clients/weston-simple-im.c
> >>> @@ -197,13 +197,13 @@ input_method_keyboard_keymap(void *data,
> >>> close(fd);
> >>>
> >>> if (!keyboard->keymap) {
> >>> - fprintf(stderr, "failed to compile keymap\n");
> >>> + fprintf(stderr, "Failed to compile keymap\n");
> >>> return;
> >>> }
> >>>
> >>> keyboard->state = xkb_state_new(keyboard->keymap);
> >>> if (!keyboard->state) {
> >>> - fprintf(stderr, "failed to create XKB state\n");
> >>> + fprintf(stderr, "Failed to create XKB state\n");
> >>> xkb_keymap_unref(keyboard->keymap);
> >>> return;
> >>> }
> >>> @@ -489,7 +489,7 @@ main(int argc, char *argv[])
> >>>
> >>> simple_im.display = wl_display_connect(NULL);
> >>> if (simple_im.display == NULL) {
> >>> - fprintf(stderr, "failed to connect to server: %m\n");
> >>> + fprintf(stderr, "Failed to connect to server: %m\n");
> >>> return -1;
> >>> }
> >>>
> >>>
> > _______________________________________________
> > wayland-devel mailing list
> > wayland-devel at lists.freedesktop.org
> > https://lists.freedesktop.org/mailman/listinfo/wayland-devel
More information about the wayland-devel
mailing list