All of lore.kernel.org
 help / color / mirror / Atom feed
diff for duplicates of <56BDC6F4.4050601@redhat.com>

diff --git a/a/1.txt b/N1/1.txt
index c4f4b89..4a06f39 100644
--- a/a/1.txt
+++ b/N1/1.txt
@@ -42,24 +42,24 @@ On 08.02.2016 19:53, Andrew Jones wrote:
 > +	for (i = 0; i < argc; ++i) {
 > +
 > +		len = parse_keyval(argv[i], &val);
-> +		if (len = -1)
+> +		if (len == -1)
 > +			continue;
 > +
 > +		argv[i][len] = '\0';
 > +		report_prefix_push(argv[i]);
 > +
-> +		if (strcmp(argv[i], "mem") = 0) {
+> +		if (strcmp(argv[i], "mem") == 0) {
 > +
 > +			phys_addr_t memsize = PHYSICAL_END - PHYSICAL_START;
 > +			phys_addr_t expected = ((phys_addr_t)val)*1024*1024;
 > +
-> +			report("size = %d MB", memsize = expected,
+> +			report("size = %d MB", memsize == expected,
 > +							memsize/1024/1024);
 > +			++nr_tests;
 > +
-> +		} else if (strcmp(argv[i], "smp") = 0) {
+> +		} else if (strcmp(argv[i], "smp") == 0) {
 > +
-> +			report("nr_cpus = %d", nr_cpus = (int)val, nr_cpus);
+> +			report("nr_cpus = %d", nr_cpus == (int)val, nr_cpus);
 > +			++nr_tests;
 
 Could you maybe add a check for nr_cpus <= NR_CPUS somewhere and print a
@@ -86,7 +86,7 @@ took a while till I understood what was wrong).
 > +
 > +	report_prefix_push(argv[0]);
 > +
-> +	if (strcmp(argv[0], "setup") = 0) {
+> +	if (strcmp(argv[0], "setup") == 0) {
 > +
 > +		check_setup(argc-1, &argv[1]);
 > +
diff --git a/a/content_digest b/N1/content_digest
index 94f98e4..0517ff0 100644
--- a/a/content_digest
+++ b/N1/content_digest
@@ -2,7 +2,7 @@
  "ref\01454957594-30601-10-git-send-email-drjones@redhat.com\0"
  "From\0Thomas Huth <thuth@redhat.com>\0"
  "Subject\0Re: [kvm-unit-tests PATCH v2 09/14] powerpc/ppc64: adapt arm's setup\0"
- "Date\0Fri, 12 Feb 2016 11:50:12 +0000\0"
+ "Date\0Fri, 12 Feb 2016 12:50:12 +0100\0"
  "To\0Andrew Jones <drjones@redhat.com>"
   kvm@vger.kernel.org
  " kvm-ppc@vger.kernel.org\0"
@@ -57,24 +57,24 @@
  "> +\tfor (i = 0; i < argc; ++i) {\n"
  "> +\n"
  "> +\t\tlen = parse_keyval(argv[i], &val);\n"
- "> +\t\tif (len = -1)\n"
+ "> +\t\tif (len == -1)\n"
  "> +\t\t\tcontinue;\n"
  "> +\n"
  "> +\t\targv[i][len] = '\\0';\n"
  "> +\t\treport_prefix_push(argv[i]);\n"
  "> +\n"
- "> +\t\tif (strcmp(argv[i], \"mem\") = 0) {\n"
+ "> +\t\tif (strcmp(argv[i], \"mem\") == 0) {\n"
  "> +\n"
  "> +\t\t\tphys_addr_t memsize = PHYSICAL_END - PHYSICAL_START;\n"
  "> +\t\t\tphys_addr_t expected = ((phys_addr_t)val)*1024*1024;\n"
  "> +\n"
- "> +\t\t\treport(\"size = %d MB\", memsize = expected,\n"
+ "> +\t\t\treport(\"size = %d MB\", memsize == expected,\n"
  "> +\t\t\t\t\t\t\tmemsize/1024/1024);\n"
  "> +\t\t\t++nr_tests;\n"
  "> +\n"
- "> +\t\t} else if (strcmp(argv[i], \"smp\") = 0) {\n"
+ "> +\t\t} else if (strcmp(argv[i], \"smp\") == 0) {\n"
  "> +\n"
- "> +\t\t\treport(\"nr_cpus = %d\", nr_cpus = (int)val, nr_cpus);\n"
+ "> +\t\t\treport(\"nr_cpus = %d\", nr_cpus == (int)val, nr_cpus);\n"
  "> +\t\t\t++nr_tests;\n"
  "\n"
  "Could you maybe add a check for nr_cpus <= NR_CPUS somewhere and print a\n"
@@ -101,7 +101,7 @@
  "> +\n"
  "> +\treport_prefix_push(argv[0]);\n"
  "> +\n"
- "> +\tif (strcmp(argv[0], \"setup\") = 0) {\n"
+ "> +\tif (strcmp(argv[0], \"setup\") == 0) {\n"
  "> +\n"
  "> +\t\tcheck_setup(argc-1, &argv[1]);\n"
  "> +\n"
@@ -113,4 +113,4 @@
  "\n"
   Thomas
 
-0596c72600d42952acedb4f5ea0cfeb62da6f36d4fbb06a5f4b0d7cabeb89190
+09b9c274fc0f7a56923d1336acba0fa57b33af6b83f5f98941d52dd71c71a5f1

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.