};
static noinline_for_stack
-char *resource_string(char *buf, char *end, struct resource *res,
- struct printf_spec spec, const char *fmt)
+char *resource_string(struct printf_state *ps, struct resource *res)
{
#ifndef IO_RSRC_PRINTK_SIZE
#define IO_RSRC_PRINTK_SIZE 6
2*RSRC_BUF_SIZE + FLAG_BUF_SIZE + RAW_BUF_SIZE)];
char *p = sym, *pend = sym + sizeof(sym);
- int decode = (fmt[0] == 'R') ? 1 : 0;
+ int decode = (ps->fmt[0] == 'R') ? 1 : 0;
const struct printf_spec *specp;
*p++ = '[';
*p++ = ']';
*p = '\0';
- return string(buf, end, sym, spec);
+ printf_string(ps, sym);
+ return ps->buf;
}
static noinline_for_stack
return symbol_string(ps, ptr);
case 'R':
case 'r':
- return resource_string(buf, end, ptr, spec, fmt);
+ return resource_string(ps, ptr);
case 'h':
return hex_string(buf, end, ptr, spec, fmt);
case 'b':