Lines Matching refs:snprintf
18 use fastboot::{next_arg, next_arg_u64, snprintf, CommandError, FormattedBytes};
53 Ok((name == self.0).then_some(snprintf!(out, "{}", self.1).len())) in get()
83 PARTITION_SIZE => Some(snprintf!(out, "{:#x}", gbl_fb.partition_io(part).size()).len()), in get()
84 PARTITION_TYPE => Some(snprintf!(out, "raw").len()), // Image type not supported yet. in get()
104 let id = snprintf!(id_str, "{:x}", id); in get_all()
109 f(PARTITION_SIZE, &[part, id], snprintf!(size_str, "{:#x}", sz))?; in get_all()
111 f(PARTITION_TYPE, &[part, id], snprintf!(size_str, "raw"))?; in get_all()
147 Some(snprintf!(out, "{:#x}", val).len()) in get()
162 let id = snprintf!(id_str, "{:x}", id); in get_all()
164 f(BLOCK_DEVICE, &[id, "total-blocks"], snprintf!(val, "{:#x}", blk.num_blocks()?))?; in get_all()
165 f(BLOCK_DEVICE, &[id, "block-size"], snprintf!(val, "{:#x}", blk.block_size()?)) in get_all()