[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20130918130735.GC2240@ghostprotocols.net>
Date: Wed, 18 Sep 2013 10:07:35 -0300
From: Arnaldo Carvalho de Melo <acme@...stprotocols.net>
To: Peter Zijlstra <peterz@...radead.org>
Cc: Ricardo Ribalda Delgado <ricardo.ribalda@...il.com>,
Ingo Molnar <mingo@...nel.org>,
Paul Mackerras <paulus@...ba.org>,
Ingo Molnar <mingo@...hat.com>,
Namhyung Kim <namhyung@...nel.org>,
Waiman Long <Waiman.Long@...com>,
Stephane Eranian <eranian@...gle.com>,
Jiri Olsa <jolsa@...hat.com>, David Ahern <dsahern@...il.com>,
LKML <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] perf: Support for Openembedded/Yocto -dbg packages
Em Wed, Sep 18, 2013 at 12:18:01PM +0200, Peter Zijlstra escreveu:
> On Wed, Sep 18, 2013 at 12:02:12PM +0200, Ricardo Ribalda Delgado wrote:
> > Perhaps this is even more clear than v2:
> > len = snprintf(file, size, "%s", symbol_conf.symfs);
> > size -= len;
> > file += len;
> > len = snprintf(file, MIN(size,(last_slash - dso->long_name) + 2),
> > "%s", dso->long_name);
> > size -= len;
> > file += len;
> > len = snprintf(file, size, ".debug%s", last_slash);
> len = 0;
> len += snprintf(str + len, size - len, ...);
> len += snprintf(str + len, size - len, ...);
And avoid snprintf like the plague, use scnprintf instead... See
e7f01d1e3d8d501deb8abeaa269d5d48a703b8b0 for details :-)
- Arnaldo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists