Messages in this thread | | | Subject | Re: [PATCH v3 1/6] Add header files and Kbuild plumbing for SI476x MFD core | From | Joe Perches <> | Date | Tue, 23 Oct 2012 15:56:59 -0700 |
| |
On Tue, 2012-10-23 at 11:44 -0700, Andrey Smirnov wrote: > This patch adds all necessary header files and Kbuild plumbing for the > core driver for Silicon Laboratories Si476x series of AM/FM tuner > chips.
[]
> +#ifdef DEBUG > +#define DBG_BUFFER(device, header, buffer, bcount) \ > + do { \ > + dev_info((device), header); \ > + print_hex_dump_bytes("", \ > + DUMP_PREFIX_OFFSET, \ > + buffer, bcount); \ > + } while (0)
maybe just: dev_dbg(device, whatever_fmt ": %*ph\n", bcount, buffer); at each call site
| |