Closed
Description
Formating yields incorrect result.
I tried this code at a bare metal Raspberry Pi (no_std
):
let foo: u32 = 13;
kprint::fkprint(format_args!("foo = {} = {:?} = {:x} = {:b}\n",foo,foo,foo,foo));
kprint::fkprint
writes to the frame buffer using the Write
trait.
I expected to see this output:
foo = 13 = 13 = d = 1101
Instead, the output is:
foo = 21 = 21 = d = 1101
Meta
I'm using rustc 1.22.0-nightly (dd08c30 2017-09-12) with xargo
, i.e., core
is newly built.