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

diff --git a/a/1.txt b/N1/1.txt
index 6d427f1..f0bc6ee 100644
--- a/a/1.txt
+++ b/N1/1.txt
@@ -24,9 +24,9 @@ On Sun, Mar 22, 2020 at 06:25:23PM +0100, Christophe JAILLET wrote:
 >  
 >  	/* 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.
 
diff --git a/a/content_digest b/N1/content_digest
index fa743d5..d9a527f 100644
--- a/a/content_digest
+++ b/N1/content_digest
@@ -1,7 +1,7 @@
  "ref\020200322172523.2677-1-christophe.jaillet@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 11:03:34 +0000\0"
+ "Date\0Mon, 23 Mar 2020 14:03:34 +0300\0"
  "To\0Christophe JAILLET <christophe.jaillet@wanadoo.fr>\0"
  "Cc\0peterz@infradead.org"
   mingo@redhat.com
@@ -44,9 +44,9 @@
  ">  \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"
  "\n"
  "This should be a static analysis warning.\n"
  "\n"
@@ -56,4 +56,4 @@
  "regards,\n"
  dan carpenter
 
-7e2b0c259190591b67f4a29f75803ca1eb399ce328c86c58af06697a3fcb4972
+dfcbf937553957061feeb5df8a0b0e3e2f7b59683d40458d52db911b1aea9bec

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.