panic: invalid bcd 194

Kurt Jaeger pi at opsec.eu
Tue Jan 2 15:26:32 UTC 2018


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

-- 
pi at opsec.eu            +49 171 3101372                         2 years to go !


More information about the freebsd-current mailing list