Return-path: Received: from perches-mx.perches.com ([206.117.179.246]:49735 "EHLO labridge.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752126Ab2KMNGI (ORCPT ); Tue, 13 Nov 2012 08:06:08 -0500 Message-ID: <1352811970.24230.22.camel@joe-AO722> (sfid-20121113_140620_935777_B4B101E1) Subject: Re: [PATCH v7 1/2] wireless: Driver for 60GHz card wil6210 From: Joe Perches To: Vladimir Kondratiev , Jason Baron , Andrew Morton Cc: "John W . Linville" , Johannes Berg , linux-wireless@vger.kernel.org, "Luis R . Rodriguez" Date: Tue, 13 Nov 2012 05:06:10 -0800 In-Reply-To: <1352809427-29682-2-git-send-email-qca_vkondrat@qca.qualcomm.com> References: <1352809427-29682-1-git-send-email-qca_vkondrat@qca.qualcomm.com> <1352809427-29682-2-git-send-email-qca_vkondrat@qca.qualcomm.com> Content-Type: text/plain; charset="ISO-8859-1" Mime-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org List-ID: On Tue, 2012-11-13 at 14:23 +0200, Vladimir Kondratiev wrote: [] > diff --git a/drivers/net/wireless/ath/wil6210/wil6210.h b/drivers/net/wireless/ath/wil6210/wil6210.h [] > +/* Candidate to merge into printk.h and dynamic_debug.h */ > +#if defined(CONFIG_DYNAMIC_DEBUG) > +#define dynamic_hex_dump(prefix_str, prefix_type, rowsize, \ > + groupsize, buf, len, ascii) \ > +do { \ > + DEFINE_DYNAMIC_DEBUG_METADATA(descriptor, prefix_str); \ > + if (unlikely(descriptor.flags & _DPRINTK_FLAGS_PRINT)) \ > + print_hex_dump(KERN_DEBUG, prefix_str, \ > + prefix_type, rowsize, groupsize, \ > + buf, len, ascii); \ > +} while (0) > + > +#define debug_hex_dump(prefix_str, prefix_type, rowsize, \ > + groupsize, buf, len, ascii) \ > + dynamic_hex_dump(prefix_str, prefix_type,\ > + rowsize, groupsize, buf,\ > + len, ascii) > +#else > +#define debug_hex_dump(prefix_str, prefix_type, rowsize, \ > + groupsize, buf, len, ascii) \ > + print_hex_dump(KERN_DEBUG, prefix_str, \ > + prefix_type, rowsize, \ > + groupsize, buf, len, ascii) > +#endif Thanks Vladimir. I think so too. Jason? Andrew?