Source-Changes-D archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: CVS commit: src/sys/uvm
Date: Mon, 20 Mar 2017 13:03:31 +0100
From: Joerg Sonnenberger <joerg%bec.de@localhost>
Message-ID: <20170320120331.GA19520%britannica.bec.de@localhost>
| On Mon, Mar 20, 2017 at 10:44:24AM +0000, Robert Elz wrote:
| > Why is there no PRI[xd]OFF ? How are off_t's intended to be printed?
|
| %jd + cast to intmax_t.
Yes, that one I knew - that's a generic solution to printing any
random unknown integral type - and it's ugly - useful as a fallback though.
If that was to be the general recommended solution, we'd have no need for
almost any of the gazillion PRI[xd]TYPE #defines that exist now (PRIxPSIZE,
PRIxVADDR, ...)
off_t's are a common enough data type that we should support printing them
without casts (IMO.)
kre
Home |
Main Index |
Thread Index |
Old Index