fix incorrect gmx_fatal argument order
authorSzilard Pall <pszilard@cbr.su.se>
Thu, 20 Dec 2012 23:36:31 +0000 (00:36 +0100)
committerSzilard Pall <pszilard@cbr.su.se>
Thu, 20 Dec 2012 23:36:31 +0000 (00:36 +0100)
The format specifiers did not match the argument order.

Change-Id: Ib58892f4b0e09d7c3d3442a88f0bda98ea4b54b9

src/gmxlib/gmx_detect_hardware.c

index e4fef1fe00021f3d7d061d016d0a5edd431b20ed..ad3dd9488a4e661d0254acea985ee7a9873b6715 100644 (file)
@@ -177,7 +177,7 @@ static void parse_gpu_id_plain_string(const char *idstr, int *nid, int *idlist)
         if (idstr[i] < '0' || idstr[i] > '9')
         {
             gmx_fatal(FARGS, "Invalid character in GPU ID string: '%c'\n%s\n",
-                      invalid_gpuid_hint, idstr[i]);
+                      idstr[i], invalid_gpuid_hint);
         }
         idlist[i] = idstr[i] - '0';
     }