Skip to contentSkip to conversation

xfstests: fix format string warnings in aio-dio-extend-stat.c

PATCH In review Christoph Hellwig 2 participants 2 messages Jan 21, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xfstests: fix format string warnings in aio-dio-extend-stat.c

src/aio-dio-regress/aio-dio-extend-stat.c +3 -2
Index: xfstests-dev/src/aio-dio-regress/aio-dio-extend-stat.c
===================================================================
@@ -149,8 +149,9 @@ void fun_read(void *ptr)
 			if (filestat.st_size < exSize)
 				fail("write of %lu bytes @%llu finished, "
 				     "expected filesize at least %llu, but "
-				     "got %ld\n", event->obj->u.c.nbytes,
-				     event->obj->u.c.offset, exSize, filestat.st_size);
+				     "got %lld\n", event->obj->u.c.nbytes,
+				     event->obj->u.c.offset, exSize,
+				     (long long)filestat.st_size);
 		}
 	}
 }

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs

Reviewed-by on v1 1/1
#1 lore raw
Quoted 1 line · Christoph Hellwig

Looks good.

Quoted 17 lines

Index: xfstests-dev/src/aio-dio-regress/aio-dio-extend-stat.c
===================================================================
--- xfstests-dev.orig/src/aio-dio-regress/aio-dio-extend-stat.c 2010-01-21 11:27:36.000000000
+0000 +++ xfstests-dev/src/aio-dio-regress/aio-dio-extend-stat.c 2010-01-21 11:28:15.000000000
+0000 @@ -149,8 +149,9 @@ void fun_read(void *ptr)

src/aio-dio-regress/aio-dio-extend-stat.c +3 -2
 			if (filestat.st_size < exSize)
 				fail("write of %lu bytes @%llu finished, "
 				     "expected filesize at least %llu, but "
-				     "got %ld\n", event->obj->u.c.nbytes,
-				     event->obj->u.c.offset, exSize, filestat.st_size);
+				     "got %lld\n", event->obj->u.c.nbytes,
+				     event->obj->u.c.offset, exSize,
+				     (long long)filestat.st_size);
 		}
 	}
 }
Quoted 4 lines

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs