From patchwork Fri Apr 15 23:20:05 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 711811 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p3FNKnkl010008 for ; Fri, 15 Apr 2011 23:20:50 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753788Ab1DOXUb (ORCPT ); Fri, 15 Apr 2011 19:20:31 -0400 Received: from rcsinet10.oracle.com ([148.87.113.121]:34477 "EHLO rcsinet10.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751283Ab1DOXUa (ORCPT ); Fri, 15 Apr 2011 19:20:30 -0400 Received: from rcsinet15.oracle.com (rcsinet15.oracle.com [148.87.113.117]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id p3FNK9HT006107 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 15 Apr 2011 23:20:10 GMT Received: from acsmt358.oracle.com (acsmt358.oracle.com [141.146.40.158]) by rcsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id p3FNK8bi028346 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 15 Apr 2011 23:20:09 GMT Received: from abhmt005.oracle.com (abhmt005.oracle.com [141.146.116.14]) by acsmt358.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id p3FNK7cl005795; Fri, 15 Apr 2011 18:20:07 -0500 Received: from chimera.site (/50.53.38.135) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 15 Apr 2011 16:20:06 -0700 Date: Fri, 15 Apr 2011 16:20:05 -0700 From: Randy Dunlap To: Stephen Rothwell , linux-wireless@vger.kernel.org Cc: linux-next@vger.kernel.org, LKML , linville@tuxdriver.com Subject: [PATCH -next] mac80211: fix debugfs printk format warning Message-Id: <20110415162005.eba5e8f3.randy.dunlap@oracle.com> In-Reply-To: <20110415142852.1c745499.sfr@canb.auug.org.au> References: <20110415142852.1c745499.sfr@canb.auug.org.au> Organization: Oracle Linux Eng. X-Mailer: Sylpheed 2.7.1 (GTK+ 2.16.6; x86_64-unknown-linux-gnu) Mime-Version: 1.0 X-Source-IP: acsmt358.oracle.com [141.146.40.158] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090207.4DA8D2A9.003E:SCFSTAT5015188,ss=1,fgs=0 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Fri, 15 Apr 2011 23:20:50 +0000 (UTC) From: Randy Dunlap Fix printf() format warning (tm_year is long int): net/mac80211/debugfs_sta.c:113: warning: format '%d' expects type 'int', but argument 4 has type 'long int' Signed-off-by: Randy Dunlap --- net/mac80211/debugfs_sta.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html --- linux-next-20110415.orig/net/mac80211/debugfs_sta.c +++ linux-next-20110415/net/mac80211/debugfs_sta.c @@ -108,7 +108,7 @@ static ssize_t sta_connected_time_read(s result.tm_year -= 70; result.tm_mday -= 1; res = scnprintf(buf, sizeof(buf), - "years - %d\nmonths - %d\ndays - %d\nclock - %d:%d:%d\n\n", + "years - %ld\nmonths - %d\ndays - %d\nclock - %d:%d:%d\n\n", result.tm_year, result.tm_mon, result.tm_mday, result.tm_hour, result.tm_min, result.tm_sec); return simple_read_from_buffer(userbuf, count, ppos, buf, res);