34 #include <sys/types.h>
48 char *
p = (
char *)args++;
55 bool leftjustify =
false;
59 while (more && *++p) {
78 if (*p >=
'1' && *p <=
'9')
79 width = 10 * width + *p -
'0';
128 out.setf(ios::showbase);
146 if (leftjustify && !zero)
151 out << (int64_t)args;
153 out << (int32_t)args;
156 out << (uint64_t)args;
158 out << (uint32_t)args;
174 const char *
s = (
char *)args;
189 uint64_t
mask = (*p ==
'C') ? 0xffL : 0x7fL;
194 num = (uint64_t)args;
195 cwidth =
sizeof(uint64_t);
197 num = (uint32_t)args;
198 cwidth =
sizeof(uint32_t);
201 while (cwidth-- > 0) {
202 char c = (char)(num & mask);
212 uint64_t
n = (uint64_t)args++;
213 char *
s = (
char *)args++;
214 out << s <<
": " <<
n;
221 uint64_t
n = (uint64_t)args++;
222 struct reg_values *rv = (
struct reg_values *)args++;
230 uint64_t
n = (uint64_t)args++;
231 struct reg_desc *
rd = (
struct reg_desc *)args++;
253 size_t len = strcspn(p,
"%\n\r\0");
Bitfield< 31, 29 > format
void Printk(stringstream &out, Arguments args)