From owner-freebsd-current@freebsd.org Tue Jan 2 15:26:32 2018 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 05B24EAABFD for ; Tue, 2 Jan 2018 15:26:32 +0000 (UTC) (envelope-from pi@opsec.eu) Received: from home.opsec.eu (home.opsec.eu [IPv6:2001:14f8:200::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id BD6A03E90 for ; Tue, 2 Jan 2018 15:26:31 +0000 (UTC) (envelope-from pi@opsec.eu) Received: from pi by home.opsec.eu with local (Exim 4.89 (FreeBSD)) (envelope-from ) id 1eWOSV-000PSo-Mr; Tue, 02 Jan 2018 16:26:31 +0100 Date: Tue, 2 Jan 2018 16:26:31 +0100 From: Kurt Jaeger To: Matthias Apitz , freebsd-current@freebsd.org Subject: Re: panic: invalid bcd 194 Message-ID: <20180102152631.GN2827@home.opsec.eu> References: <20171230210711.GA75976@c720-r314251> <20171230211154.GT1684@kib.kiev.ua> <20171230214819.GA2191@c720-r314251> <20171231083624.GA2175@c720-r314251> <1514740790.12000.20.camel@freebsd.org> <20180101085425.GA2301@c720-r314251> <1514851362.1759.8.camel@freebsd.org> <20180102130020.GA2236@c720-r314251> <20180102143737.GA2286@c720-r314251> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180102143737.GA2286@c720-r314251> X-Mailman-Approved-At: Tue, 02 Jan 2018 15:28:24 +0000 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Jan 2018 15:26:32 -0000 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@opsec.eu +49 171 3101372 2 years to go !