From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 13999 invoked from network); 18 Feb 2021 20:32:23 -0000 Received: from 1ess.inri.net (216.126.196.35) by inbox.vuxu.org with ESMTPUTF8; 18 Feb 2021 20:32:23 -0000 Received: from MTA-10-1.privateemail.com ([68.65.122.30]) by 1ess; Thu Feb 18 15:24:11 -0500 2021 Received: from MTA-10.privateemail.com (localhost [127.0.0.1]) by MTA-10.privateemail.com (Postfix) with ESMTP id 64E2C60093 for <9front@9front.org>; Thu, 18 Feb 2021 15:24:03 -0500 (EST) Received: from localhost (unknown [10.20.151.207]) by MTA-10.privateemail.com (Postfix) with ESMTPA id CD9A160052 for <9front@9front.org>; Thu, 18 Feb 2021 20:24:02 +0000 (UTC) Date: Thu, 18 Feb 2021 12:23:59 -0800 From: Anthony Martin To: 9front@9front.org Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Virus-Scanned: ClamAV using ClamSMTP List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: generic responsive CSS markup event scripting framework Subject: [9front] Re: boot/efi: support framebuffer with 64-bit base address Reply-To: 9front@9front.org Precedence: bulk Michael Forney once said: > char* > hexfmt(char *s, int i, uvlong a) > { > - if(i > 8){ > - s = numfmt(s, 16, i-8, a>>32); > + if(i > 8 || i == 0 && (a>>32) != 0){ > + s = numfmt(s, 16, i ? i-8 : 0, a>>32); > i = 8; > } > return numfmt(s, 16, i, a); I'd change numfmt to take a uvlong instead of adding another special case to hexfmt. Anthony