panic: invalid bcd 194

Matthias Apitz guru at unixarea.de
Tue Jan 2 16:41:46 UTC 2018


On Tuesday, 2 January 2018 16:26:31 CET, Kurt Jaeger <pi at opsec.eu> wrote:
> Hi!
> 
>> I've added one more printf to see what is coming as year from 
>> BCD. The code
>> is attached below and bcd.year comes out as 24 (decimal) which 
>> is 0x18. I.e. it
>> seems that the year from 2018 is stored in hex as 0x18, or?
> 
> It's actually BCD code:
> 
> https://en.wikipedia.org/wiki/Binary-coded_decimal
> 

So something must be wrong in the conversion into binary because the date 
ends up as in year 1970.





-- 
Sent from my Ubuntu phone
http://www.unixarea.de/


More information about the freebsd-current mailing list