Commit d9fc49b2e0c510bf8c54e157a57bac3bb74184f0

Authored by Andy Shevchenko
Committed by Greg Kroah-Hartman
1 parent 53fa8c4688

staging: rts5139: substitute rts51x_dump by print_hex_dump

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

Showing 1 changed file with 3 additions and 29 deletions Side-by-side Diff

drivers/staging/rts5139/trace.h
... ... @@ -93,35 +93,9 @@
93 93 #endif
94 94  
95 95 #ifdef CONFIG_RTS5139_DEBUG
96   -static inline void rts51x_dump(u8 *buf, int buf_len)
97   -{
98   - int i;
99   - u8 tmp[16] = { 0 };
100   - u8 *_ptr = buf;
101   -
102   - for (i = 0; i < ((buf_len) / 16); i++) {
103   - RTS51X_DEBUGP("%02x %02x %02x %02x %02x %02x %02x %02x "
104   - "%02x %02x %02x %02x %02x %02x %02x %02x\n",
105   - _ptr[0], _ptr[1], _ptr[2], _ptr[3], _ptr[4],
106   - _ptr[5], _ptr[6], _ptr[7], _ptr[8], _ptr[9],
107   - _ptr[10], _ptr[11], _ptr[12], _ptr[13], _ptr[14],
108   - _ptr[15]);
109   - _ptr += 16;
110   - }
111   - if ((buf_len) % 16) {
112   - memcpy(tmp, _ptr, (buf_len) % 16);
113   - _ptr = tmp;
114   - RTS51X_DEBUGP("%02x %02x %02x %02x %02x %02x %02x %02x "
115   - "%02x %02x %02x %02x %02x %02x %02x %02x\n",
116   - _ptr[0], _ptr[1], _ptr[2], _ptr[3], _ptr[4],
117   - _ptr[5], _ptr[6], _ptr[7], _ptr[8], _ptr[9],
118   - _ptr[10], _ptr[11], _ptr[12], _ptr[13], _ptr[14],
119   - _ptr[15]);
120   - }
121   -}
122   -
123   -#define RTS51X_DUMP(buf, buf_len) \
124   - rts51x_dump((u8 *)(buf), (buf_len))
  96 +#define RTS51X_DUMP(buf, buf_len) \
  97 + print_hex_dump(KERN_DEBUG, RTS51X_TIP, DUMP_PREFIX_NONE, \
  98 + 16, 1, (buf), (buf_len), false)
125 99  
126 100 #define CATCH_TRIGGER(chip) \
127 101 do { \