Re: [PATCH 1/2] misc: spelling, always use "cannot" instead of "can not"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wednesday 30 November 2016, Tilman Schmidt wrote:
> Am 30.11.2016 um 15:23 schrieb Ruediger Meier:
> [...]
>
> > diff --git a/login-utils/sulogin.c b/login-utils/sulogin.c
> > index 1c4313a..a44216b 100644
> > --- a/login-utils/sulogin.c
> > +++ b/login-utils/sulogin.c
> > @@ -1012,7 +1012,7 @@ int main(int argc, char **argv)
> >  				mask_signal(SIGINT,  SIG_IGN, &saved_sigint);
> >
> >  				if (failed) {
> > -					fprintf(stderr, _("Can not execute su shell\n\n"));
> > +					fprintf(stderr, _("cannot execute su shell\n\n"));
>
> Might be better to preserve capitalization here.

I've changed it on purpose because usually we use small capitals in UL 
and no sentences (not ending with dot). This would be another thing we 
could make consistent for the whole project.

> >  					break;
> >  				}
> >  				fprintf(stderr, _("Login incorrect\n\n"));
> > @@ -1051,7 +1051,7 @@ int main(int argc, char **argv)
> >  				continue;
> >  		}
> >
> > -		errx(EXIT_FAILURE, _("Can not wait on su shell\n\n"));
> > +		errx(EXIT_FAILURE, _("cannot wait on su shell\n\n"));
>
> And here.
>
> >  	} while (1);
>
> [...]
>
> > diff --git a/sys-utils/lscpu.c b/sys-utils/lscpu.c
> > index bd702b0..e3e6ff6 100644
> > --- a/sys-utils/lscpu.c
> > +++ b/sys-utils/lscpu.c
> > @@ -886,12 +886,12 @@ is_vmware_platform(void)
> >  	act.sa_flags = SA_SIGINFO;
> >
> >  	if (sigaction(SIGSEGV, &act, &oact))
> > -		err(EXIT_FAILURE, _("error: can not set signal handler"));
> > +		err(EXIT_FAILURE, _("cannot set signal handler"));
> >
> >  	vmware_bdoor(&eax, &ebx, &ecx, &edx);
> >
> >  	if (sigaction(SIGSEGV, &oact, NULL))
> > -		err(EXIT_FAILURE, _("error: can not restore signal handler"));
> > +		err(EXIT_FAILURE, _("cannot restore signal handler"));
>
> Why drop the prefix "error: " in these two instances?
>
> Thanks,
> Tilman


--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux