mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-23 02:41:30 +00:00
[qfcc] Correct some misinformative prints
This commit is contained in:
parent
b1459ac816
commit
a98f0e04eb
1 changed files with 6 additions and 6 deletions
|
@ -26,18 +26,18 @@ int test_struct_global (void)
|
|||
int ret = 0;
|
||||
bar = baz = foo_init;
|
||||
if (bar.x != foo_init.x || bar.y != foo_init.y) {
|
||||
printf ("test_struct: bar={%d %g} foo_init={%d %g}\n",
|
||||
printf ("test_struct_global: bar={%d %g} foo_init={%d %g}\n",
|
||||
bar.x, bar.y, foo_init.x, foo_init.y);
|
||||
ret |= 1;
|
||||
}
|
||||
if (baz.x != foo_init.x || baz.y != foo_init.y) {
|
||||
printf ("test_struct: baz={%d %g} foo_init={%d %g}\n",
|
||||
printf ("test_struct_global: baz={%d %g} foo_init={%d %g}\n",
|
||||
baz.x, baz.y, foo_init.x, foo_init.y);
|
||||
ret |= 1;
|
||||
}
|
||||
bar = baz = nil;
|
||||
if (bar.x || baz.x || bar.y || baz.y) {
|
||||
printf ("test_struct: bar={%d %g} baz={%d %g}\n",
|
||||
printf ("test_struct_global: bar={%d %g} baz={%d %g}\n",
|
||||
bar.x, bar.y, baz.x, baz.y);
|
||||
ret |= 1;
|
||||
}
|
||||
|
@ -49,7 +49,7 @@ int test_simple_pointer (int *x, int *y)
|
|||
int ret = 0;
|
||||
*x = *y = z;
|
||||
if (*x != z || *y != z) {
|
||||
printf ("test_simple_global: *x=%d *y=%d z=%d\n", *x, *y, z);
|
||||
printf ("test_simple_pointer: *x=%d *y=%d z=%d\n", *x, *y, z);
|
||||
ret |= 1;
|
||||
}
|
||||
return ret;
|
||||
|
@ -60,12 +60,12 @@ int test_struct_pointer (foo *bar, foo *baz)
|
|||
int ret = 0;
|
||||
*bar = *baz = foo_init;
|
||||
if (bar.x != foo_init.x || bar.y != foo_init.y) {
|
||||
printf ("test_struct: bar={%d %g} foo_init={%d %g}\n",
|
||||
printf ("test_struct_pointer: bar={%d %g} foo_init={%d %g}\n",
|
||||
bar.x, bar.y, foo_init.x, foo_init.y);
|
||||
ret |= 1;
|
||||
}
|
||||
if (baz.x != foo_init.x || baz.y != foo_init.y) {
|
||||
printf ("test_struct: baz={%d %g} foo_init={%d %g}\n",
|
||||
printf ("test_struct_pointer: baz={%d %g} foo_init={%d %g}\n",
|
||||
baz.x, baz.y, foo_init.x, foo_init.y);
|
||||
ret |= 1;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue