Whamcloud - gitweb
LU-1225 utils: Change %llu to LPU64
authorChristopher J. Morrone <morrone2@llnl.gov>
Fri, 16 Mar 2012 03:12:09 +0000 (20:12 -0700)
committerOleg Drokin <green@whamcloud.com>
Wed, 28 Mar 2012 04:04:40 +0000 (00:04 -0400)
%llu in printf should be LPU64 to allow compilation on ppc64.

Signed-off-by: Christopher J. Morrone <morrone2@llnl.gov>
Change-Id: Ia0a6adf4220e19802164e6567f3d0c5a24875fe2
Reviewed-on: http://review.whamcloud.com/2338
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Yang Sheng <ys@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/utils/obd.c

index 8154349..880a0db 100644 (file)
@@ -561,8 +561,8 @@ static void shmem_total(int total_threads)
                         &shared_data->body.start_time);
         shmem_unlock();
 
-        printf("Total: total %llu threads %d sec %f %f/second\n", total,
-                total_threads, secs, total / secs);
+        printf("Total: total "LPU64" threads %d sec %f %f/second\n",
+               total, total_threads, secs, total / secs);
 
         return;
 }