#define dumpiov(tcp, len, addr) \
dumpiov_upto((tcp), (len), (addr), (unsigned long) -1L)
extern void dumpstr(struct tcb *, long, int);
-extern void printstr(struct tcb *, long, long);
+extern void printstr_ex(struct tcb *, long addr, long len,
+ unsigned int user_style);
extern bool printnum_short(struct tcb *, long, const char *)
ATTRIBUTE_FORMAT((printf, 3, 0));
extern bool printnum_int(struct tcb *, long, const char *)
extern void unwind_capture_stacktrace(struct tcb* tcp);
#endif
+static inline void
+printstr(struct tcb *tcp, long addr, long len)
+{
+ printstr_ex(tcp, addr, len, 0);
+}
+
static inline int
printflags(const struct xlat *x, unsigned int flags, const char *dflt)
{
* If string length exceeds `max_strlen', append `...' to the output.
*/
void
-printstr(struct tcb *tcp, long addr, long len)
+printstr_ex(struct tcb *tcp, long addr, long len, unsigned int user_style)
{
static char *str = NULL;
static char *outstr;
style = 0;
}
+ style |= user_style;
+
/* If string_quote didn't see NUL and (it was supposed to be ASCIZ str
* or we were requested to print more than -s NUM chars)...
*/