Re: [PATCH 4/5] hwclock: Fix --date debug messages

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

 



On Fri, Oct 24, 2014, at 13:41, Benno Schulenberg wrote:
> On Fri, Oct 24, 2014, at 04:53, JWP wrote:
> > -				  "unexpected results\n"
> > -				  "The command was:\n  %s\n"
> > -				  "The response was:\n  %s"),
> > -			program_invocation_short_name, date_command, date_resp);
> > +			"unexpected results\nThe response was: %s"
> > +			"The command was: %s"),
> > +		      program_invocation_short_name, date_resp, date_command);
> 
> Oh no.  If the user does not use --debug, hwclock will warn that
> a command gave an unexpected result and will print the command
> but not the actual result.  This is silly.

Sorry, I misread.  That's what you get with a \n in the middle of a line.

Benno

-- 
http://www.fastmail.fm - Same, same, but different...

--
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