Minor fix to get rid of warnings
authorChao Mei <chaomei2@illinois.edu>
Wed, 29 Feb 2012 17:46:24 +0000 (11:46 -0600)
committerChao Mei <chaomei2@illinois.edu>
Wed, 29 Feb 2012 17:46:24 +0000 (11:46 -0600)
NodeHelper.C

index 443da78b7b2781d9be2a539f6ecbbfc63d9a8440..2843484d30f3e1110de33822bedbc7f372d9ef42 100644 (file)
@@ -24,7 +24,7 @@ static volatile int exitFlag = 0;
 static int HelperOnCore(){
 #if CMK_OS_IS_LINUX
        char fname[64];
-       sprintf(fname, "/proc/%ld/task/%ld/stat", getpid(), syscall(SYS_gettid));
+       sprintf(fname, "/proc/%d/task/%ld/stat", getpid(), syscall(SYS_gettid));
        FILE *ifp = fopen(fname, "r");
        if(ifp == NULL) return -1;
        fseek(ifp, 0, SEEK_SET);