All of lore.kernel.org
 help / color / mirror / Atom feed
diff for duplicates of <20200323121642.GC4672@kadam>

diff --git a/a/1.txt b/N1/1.txt
index 789e2d5..f604e22 100644
--- a/a/1.txt
+++ b/N1/1.txt
@@ -25,9 +25,9 @@ On Mon, Mar 23, 2020 at 01:08:47PM +0100, Christophe JAILLET wrote:
 > > >   		goto out;
 > > >   	/* get the highest possible cpu number for a sparse allocation */
 > > > -	ret = snprintf(path, PATH_MAX, "%s/devices/system/cpu/possible", mnt);
-> > > -	if (ret = PATH_MAX) {
+> > > -	if (ret == PATH_MAX) {
 > > > +	ret = scnprintf(path, PATH_MAX, "%s/devices/system/cpu/possible", mnt);
-> > > +	if (ret = PATH_MAX-1) {
+> > > +	if (ret == PATH_MAX-1) {
 > > This should be a static analysis warning.
 > > 
 > > But isn't this stuff userspace?  I can't figure out how to compile it on
diff --git a/a/content_digest b/N1/content_digest
index 5c3f3e6..56b4663 100644
--- a/a/content_digest
+++ b/N1/content_digest
@@ -3,7 +3,7 @@
  "ref\09f8351f9-7664-8c96-9c37-a6e86efc9643@wanadoo.fr\0"
  "From\0Dan Carpenter <dan.carpenter@oracle.com>\0"
  "Subject\0Re: [PATCH] perf cpumap: Use scnprintf instead of snprintf\0"
- "Date\0Mon, 23 Mar 2020 12:16:42 +0000\0"
+ "Date\0Mon, 23 Mar 2020 15:16:42 +0300\0"
  "To\0Christophe JAILLET <christophe.jaillet@wanadoo.fr>\0"
  "Cc\0peterz@infradead.org"
   mingo@redhat.com
@@ -47,9 +47,9 @@
  "> > >   \t\tgoto out;\n"
  "> > >   \t/* get the highest possible cpu number for a sparse allocation */\n"
  "> > > -\tret = snprintf(path, PATH_MAX, \"%s/devices/system/cpu/possible\", mnt);\n"
- "> > > -\tif (ret = PATH_MAX) {\n"
+ "> > > -\tif (ret == PATH_MAX) {\n"
  "> > > +\tret = scnprintf(path, PATH_MAX, \"%s/devices/system/cpu/possible\", mnt);\n"
- "> > > +\tif (ret = PATH_MAX-1) {\n"
+ "> > > +\tif (ret == PATH_MAX-1) {\n"
  "> > This should be a static analysis warning.\n"
  "> > \n"
  "> > But isn't this stuff userspace?  I can't figure out how to compile it on\n"
@@ -70,4 +70,4 @@
  "regards,\n"
  dan carpenter
 
-1596a703d7e10e032b1ca70d0f44c4778eb0337e19d1f621455874107b45abf7
+625933647b9946de9c47d775cedb70190738b685558a5b1b6e3ee3f9e13b7356

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.