login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
April
»
18
Re: [PATCH 1/5] ftrace: simple clean ups
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Andrew Morton <akpm@...>
To: Steven Rostedt <rostedt@...>
Cc: <linux-kernel@...>, <mingo@...>, <rostedt@...>, <peterz@...>, <sandmann@...>, <pq@...>, <srostedt@...>
Subject:
Re: [PATCH 1/5] ftrace: simple clean ups
Date: Friday, April 18, 2008 - 4:15 pm
On Fri, 18 Apr 2008 16:05:39 -0400 Steven Rostedt <rostedt@goodmis.org> wrote:
quoted text
> - r = snprintf(buf, 64, "%ld\n", > + r = snprintf(buf, sizeof(buf), "%ld\n",
If you use scnprintf here
quoted text
> *ptr == (unsigned long)-1 ? -1 : nsecs_to_usecs(*ptr)); > - if (r > 64) > - r = 64; > + if (r > sizeof(buf)) > + r = sizeof(buf);
This becomes a cant-happen (I think). --
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 1/5] ftrace: simple clean ups
, Steven Rostedt
, (Fri Apr 18, 4:05 pm)
Re: [PATCH 1/5] ftrace: simple clean ups
, Andrew Morton
, (Fri Apr 18, 4:15 pm)
[PATCH 1/5 -v2] ftrace: simple clean ups
, Steven Rostedt
, (Fri Apr 18, 11:11 pm)
Re: [PATCH 1/5] ftrace: simple clean ups
, Steven Rostedt
, (Fri Apr 18, 11:09 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Theodore Tso
Re: -mm merge plans for 2.6.23 -- sys_fallocate
Greg Kroah-Hartman
[PATCH 005/196] Chinese: add translation of SubmittingDrivers
Christoph Hellwig
Re: [malware-list] [RFC 0/5] [TALPA] Intro to a linux interface for on access scan...
Andi Kleen
[PATCH] [0/45] x86 2.6.24 patches review I
git
:
openbsd-misc
:
linux-netdev
:
Wenji Wu
RE: A Linux TCP SACK Question
David Miller
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
David Miller
Re: [GIT]: Networking
Colocation donated by:
Who's online
There are currently
5 users
and
836 guests
online.
Online users
strcmp
keithbartramqv
familyguyqzxli
countyjailinma
vv_ivango
Syndicate