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';
129 out.setf(ios::showbase);
147 if (leftjustify && !zero)
152 out << (int64_t)args;
154 out << (int32_t)args;
157 out << (uint64_t)args;
159 out << (uint32_t)args;
175 const char *
s = (
char *)args;
190 uint64_t
mask = (*p ==
'C') ? 0xffL : 0x7fL;
195 num = (uint64_t)args;
196 cwidth =
sizeof(uint64_t);
198 num = (uint32_t)args;
199 cwidth =
sizeof(uint32_t);
202 while (cwidth-- > 0) {
203 char c = (char)(num & mask);
213 uint64_t
n = (uint64_t)args++;
214 char *
s = (
char *)args++;
215 out << s <<
": " <<
n;
246 size_t len = strcspn(p,
"%\n\r\0");
Overload hash function for BasicBlockRange type.
Bitfield< 31, 29 > format
void Printk(stringstream &out, Arguments args)