Re: [PATCH 4/5] hwclock: add '11 minute mode' information

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

 



On Tue, Mar 17, 2015 at 09:16:16PM -0400, J William Piggott wrote:
> 
> 
> On 03/17/2015 05:57 AM, Karel Zak wrote:
> > On Sun, Mar 15, 2015 at 04:47:27PM +0100, Benno Schulenberg wrote:
> >> "When in this state, bit 6 (the bit that is set in the mask 0x0040)
> >> of the kernel's time_status variable is *unset*."
> > 
> > Yes, this is more readable (at least for me:-).
> 
> I explained to Mr Schulenbuerg that I wrote it that way for layman users. 
> Are they going to understand 'the bit that is set in the mask 0x0040'?

I have doubts it will be readable for layman users at all
independently on used words :-) Now it's at least readable for
advanced users. If you want to make it really readable for layman
users than add and example to the man page.

> What does that even mean? What does 'mask' have to do with it? It could
> simply say "the bit that is set by binary 0x0040"
> How does that differ from saying the binary 64's bit?
> 
> Using hex will help the average user how?
> 
> I used decimal because adjtimex displays the status variable as a decimal
> number:
> 
> adjtimex -p
> status: 8193
> 
> adjtimex -p
> status: 8257
> 
> Which one is synchronized?

$ echo $((8193 & 0x0040))
0

$ echo $((8257 & 0x0040))
64

and frankly it's adjtimex mistake that it does not provide the
information in more human readable way. 

    Karel

-- 
 Karel Zak  <kzak@xxxxxxxxxx>
 http://karelzak.blogspot.com
--
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