lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Tue, 23 Oct 2012 15:56:59 -0700
From:	Joe Perches <joe@...ches.com>
To:	Andrey Smirnov <andrey.smirnov@...vergeddevices.net>
Cc:	hverkuil@...all.nl, mchehab@...hat.com, sameo@...ux.intel.com,
	broonie@...nsource.wolfsonmicro.com, perex@...ex.cz, tiwai@...e.de,
	linux-media@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v3 1/6] Add header files and Kbuild plumbing for SI476x
 MFD core

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


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ