login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
April
»
14
Re: [PATCH] perf: Fix accidentally preprocessed snprintf callback
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Frederic Weisbecker
Subject:
Re: [PATCH] perf: Fix accidentally preprocessed snprintf callback
Date: Wednesday, April 14, 2010 - 7:55 am
On Tue, Apr 13, 2010 at 11:28:00PM -0300, Arnaldo Carvalho de Melo wrote:
quoted text
> Em Wed, Apr 14, 2010 at 02:41:16AM +0200, Frederic Weisbecker escreveu: > > On Wed, Apr 14, 2010 at 02:37:48AM +0200, Frederic Weisbecker wrote: > > > struct sort_entry has a callback named snprintf that turns an > > > entry into a string result. > > > > > > But there are glibc versions that implement snprintf through a > > > macro. The following expression is then going to get the snprintf > > > call preprocessed: > > > > > > ent->snprintf(...) > > > > > > to finally end up in a build error: > > > > > > util/hist.c: Dans la fonction «hist_entry__snprintf» : > > > util/hist.c:539: erreur: «struct sort_entry» has no member named «__builtin___snprintf_chk» > > > > > > To fix this, rename struct sort_entry::snprintf() callback to > > > to_string(), assuming at least Java methods naming won't ever > > > conflict with perf. > > > > > > Note I'm not entirely happy with this to_string() renaming. > > May be append_string() would have been better. I don't know. > > snprintf() was just too good. > > If you think about something else, don't hesistate to change, > > or I can change it myself if you want. > > psnprintf() I guess, the intent was exactly to mean that it is indeed > similar to snprintf... dammit, there is already a psnprintf out there > :-\ > > Perhaps just do it as ->he_snprintf and have the other methods as well > prefixed with he as a shorthand for hist_entry, that is what the methods > operate, besides the string, ok?
Sure, I'll resend. This is going to be se_sprintf() though, as it's about sort_entry, not hist_entry :) Thanks. --
unsubscribe notice
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/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH] perf: Fix accidentally preprocessed snprintf callback
, Frederic Weisbecker
, (Tue Apr 13, 5:37 pm)
Re: [PATCH] perf: Fix accidentally preprocessed snprintf c ...
, Frederic Weisbecker
, (Tue Apr 13, 5:41 pm)
Re: [PATCH] perf: Fix accidentally preprocessed snprintf c ...
, Arnaldo Carvalho de Melo
, (Tue Apr 13, 7:28 pm)
Re: [PATCH] perf: Fix accidentally preprocessed snprintf c ...
, Frederic Weisbecker
, (Wed Apr 14, 7:55 am)
[PATCH v2] struct sort_entry has a callback named snprintf ...
, Frederic Weisbecker
, (Wed Apr 14, 10:09 am)
[PATCH v3] perf: Fix accidentally preprocessed snprintf ca ...
, Frederic Weisbecker
, (Wed Apr 14, 10:11 am)
Re: [PATCH v3] perf: Fix accidentally preprocessed snprint ...
, Arnaldo Carvalho de Melo
, (Wed Apr 14, 10:31 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
swhiteho
[PATCH 42/51] [GFS2] Move inode deletion out of blocking_cb
FUJITA Tomonori
Re: [Scst-devel] Integration of SCST in the mainstream Linux kernel
Matthew
Re: Linux 2.6.25
Alex Riesen
Re: [PATCH 4/7] lib: Introduce strnstr()
Alexey Dobriyan
Re: [2.6.22.2 review 09/84] Fix rfkill IRQ flags.
git
:
Mike Miller
git message
David Bremner
Commit f5bbc322 to git broke pre-commit hooks which read stdin
Stefan Richter
Re: [kernel.org users] [RFD] On deprecating "git-foo" for builtins
Jeff King
Re: [PATCH] t7004: test that "git-tag -u" implies "-s"
Christian MICHON
Re: VCS comparison table
linux-netdev
:
Arnaldo Carvalho de Melo
Re: [PATCH 06/37] dccp: Limit feature negotiation to connection setup phase
David Miller
Re: 2.6.27.18: bnx2/tg3: BUG: "scheduling while atomic" trying to ifenslave a seco...
Badalian Vyacheslav
Re: tc filter flow hash question
Parav Pandit
ip6 route output() and ip_route_output_key() by drivers
Jarek Poplawski
Re: tc filter flow hash question
git-commits-head
:
Linux Kernel Mailing List
i915: Don't whine when pci_enable_msi() fails.
Linux Kernel Mailing List
usb: musb: fix hanging when rmmod gadget driver
Linux Kernel Mailing List
[ARM] 4671/1: ep93xx: remove obsolete gpio_line_* operations
Linux Kernel Mailing List
Staging: wlan-ng: Move wlan_mkprintstr() and wlan_hexchar() macros into prism2sta.c
Linux Kernel Mailing List
NFSv4: Move error handling out of the delegation generic code
openbsd-misc
:
Vikas N Kumar
Re: Singularity OS
Marco Peereboom
Re: OpenBSD culture?
ropers
Re: Real men don't attack straw men
"RALOVICH, Kristóf"
Re: thinkpad windows refund
Kevin
Re: uvm_mapent_alloc: out of static map entries on 4.3 i386
Colocation donated by:
Syndicate