Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752335AbbHRGLA (ORCPT ); Tue, 18 Aug 2015 02:11:00 -0400 Received: from mail-pa0-f41.google.com ([209.85.220.41]:35926 "EHLO mail-pa0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751212AbbHRGK6 (ORCPT ); Tue, 18 Aug 2015 02:10:58 -0400 Date: Tue, 18 Aug 2015 11:40:50 +0530 From: Sudip Mukherjee To: =?iso-8859-1?Q?Rapha=EBl?= Beamonte Cc: Greg Kroah-Hartman , Rachel Kim , Dean Lee , Chris Park , devel@driverdev.osuosl.org, linux-wireless@vger.kernel.org, Johnny Kim , linux-kernel@vger.kernel.org, Dan Carpenter Subject: Re: [PATCHv3] staging: wilc1000: use netdev_* instead of printk Message-ID: <20150818061050.GG2941@sudip-pc> References: <20150817195542.GB6591@kroah.com> <20150818042417.GA2941@sudip-pc> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1387 Lines: 28 On Tue, Aug 18, 2015 at 01:27:31AM -0400, Rapha?l Beamonte wrote: > 2015-08-18 0:24 GMT-04:00 Sudip Mukherjee : > >> + netdev_err("[Sendconfigpkt]Get Timed out\n"); > > This will not compile. you can not just replace printk with > > netdev_*, you need to mention a net_device. > > You're right! I'm making a lot of mistakes. It seems I called the make > command in the wrong git tree... Thanks for catching that, and taking > time to review! > I just saw there isn't any netdev_debug available. Do you know the > reason for that? Is there a replacement besides pr_debug? netdev_dbg > Also, it seems that in all the functions where it's another netdev > that's available that I could use, I don't have access to the > net_device struct. Is there a general way to get that device > information? I saw an old lkml post talking about dev_*() functions to > do that? Would you have some hint on the matter? If the function is not having the net_device try to see if you can pass it the struct as an argument. if not possible then in any way then no other way but to use pr_* regards sudip -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/