|
From: Tom H. <th...@cy...> - 2004-03-15 12:59:02
|
CVS commit by thughes:
Fix compiler warnings.
M +4 -4 pushpopseg.c 1.2 [POSSIBLY UNSAFE: printf]
--- valgrind/none/tests/pushpopseg.c #1.1:1.2
@@ -24,6 +24,6 @@ int main(int argc, char **argv)
);
- printf("sp change after push = %d\n", sp2 - sp1);
- printf("sp change after pop = %d\n", sp3 - sp2);
+ printf("sp change after push = %ld\n", sp2 - sp1);
+ printf("sp change after pop = %ld\n", sp3 - sp2);
printf("fs after push and pop = %04x\n", fs1);
@@ -40,6 +40,6 @@ int main(int argc, char **argv)
);
- printf("sp change after push = %d\n", sp2 - sp1);
- printf("sp change after pop = %d\n", sp3 - sp2);
+ printf("sp change after push = %ld\n", sp2 - sp1);
+ printf("sp change after pop = %ld\n", sp3 - sp2);
printf("fs after push and pop = %04x\n", fs1);
|