From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753103AbZEQOoZ (ORCPT ); Sun, 17 May 2009 10:44:25 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1750885AbZEQOoQ (ORCPT ); Sun, 17 May 2009 10:44:16 -0400 Received: from extu-mxob-2.symantec.com ([216.10.194.135]:36775 "EHLO extu-mxob-2.symantec.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750829AbZEQOoP (ORCPT ); Sun, 17 May 2009 10:44:15 -0400 Date: Sun, 17 May 2009 15:43:14 +0100 (BST) From: Hugh Dickins X-X-Sender: hugh@blonde.anvils To: Linus Torvalds cc: Andi Kleen , Ian Campbell , Jakub Jelinek , Linux Kernel Mailing List , Jesper Nilsson , Johannes Weiner , Arjan van de Ven , Andrew Morton Subject: Re: [PATCH] Fix print out of function which called WARN_ON() In-Reply-To: Message-ID: References: <1242404236-17624-1-git-send-email-ian.campbell@citrix.com> <4A0DC797.7040502@linux.intel.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 16 May 2009, Linus Torvalds wrote: > > This patch not only avoids the warnings and gets the right caller > information, it cleans up the code too: > > - it uses '%pS' instead of of sprint_symbol > - char function[KSYM_SYMBOL_LEN]; This should be a big improvement, because that buffer on the stack was netting lots of stale return addresses, printed out with ?s in the warning's dump_stack(). I had been wanting to add a memset, but your %pS should circumvent the need for that nicely. Hugh