diff options
| author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2013-04-22 09:01:53 -0400 |
|---|---|---|
| committer | Eric Van Hensbergen <ericvh@gmail.com> | 2013-05-28 14:42:08 -0400 |
| commit | cfdadef30739301fdcc4411e8260d88c249dc45a (patch) | |
| tree | f662fabe4bb3939d9f5f0ea9a9a65374f0a95e5e /include | |
| parent | 42fe6484c639e8f79e09f81cb89f4f69db224997 (diff) | |
9p: trace: use %*ph to dump buffer
Additionally change cast from long to unsigned long to follow specificator.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>
Diffstat (limited to 'include')
| -rw-r--r-- | include/trace/events/9p.h | 28 |
1 files changed, 3 insertions, 25 deletions
diff --git a/include/trace/events/9p.h b/include/trace/events/9p.h index beeaed8398ec..a0666362c111 100644 --- a/include/trace/events/9p.h +++ b/include/trace/events/9p.h | |||
| @@ -143,31 +143,9 @@ TRACE_EVENT(9p_protocol_dump, | |||
| 143 | __entry->tag = pdu->tag; | 143 | __entry->tag = pdu->tag; |
| 144 | memcpy(__entry->line, pdu->sdata, P9_PROTO_DUMP_SZ); | 144 | memcpy(__entry->line, pdu->sdata, P9_PROTO_DUMP_SZ); |
| 145 | ), | 145 | ), |
| 146 | TP_printk("clnt %lu %s(tag = %d)\n%.3x: " | 146 | TP_printk("clnt %lu %s(tag = %d)\n%.3x: %16ph\n%.3x: %16ph\n", |
| 147 | "%02x %02x %02x %02x %02x %02x %02x %02x " | 147 | (unsigned long)__entry->clnt, show_9p_op(__entry->type), |
| 148 | "%02x %02x %02x %02x %02x %02x %02x %02x\n" | 148 | __entry->tag, 0, __entry->line, 16, __entry->line + 16) |
| 149 | "%.3x: " | ||
| 150 | "%02x %02x %02x %02x %02x %02x %02x %02x " | ||
| 151 | "%02x %02x %02x %02x %02x %02x %02x %02x\n", | ||
| 152 | (long)__entry->clnt, show_9p_op(__entry->type), | ||
| 153 | __entry->tag, 0, | ||
| 154 | __entry->line[0], __entry->line[1], | ||
| 155 | __entry->line[2], __entry->line[3], | ||
| 156 | __entry->line[4], __entry->line[5], | ||
| 157 | __entry->line[6], __entry->line[7], | ||
| 158 | __entry->line[8], __entry->line[9], | ||
| 159 | __entry->line[10], __entry->line[11], | ||
| 160 | __entry->line[12], __entry->line[13], | ||
| 161 | __entry->line[14], __entry->line[15], | ||
| 162 | 16, | ||
| 163 | __entry->line[16], __entry->line[17], | ||
| 164 | __entry->line[18], __entry->line[19], | ||
| 165 | __entry->line[20], __entry->line[21], | ||
| 166 | __entry->line[22], __entry->line[23], | ||
| 167 | __entry->line[24], __entry->line[25], | ||
| 168 | __entry->line[26], __entry->line[27], | ||
| 169 | __entry->line[28], __entry->line[29], | ||
| 170 | __entry->line[30], __entry->line[31]) | ||
| 171 | ); | 149 | ); |
| 172 | 150 | ||
| 173 | #endif /* _TRACE_9P_H */ | 151 | #endif /* _TRACE_9P_H */ |
