Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/lib/libc/gen Re-enable printing of MD data, with appro...
details: https://anonhg.NetBSD.org/src/rev/45b01436fa26
branches: trunk
changeset: 760091:45b01436fa26
user: pgoyette <pgoyette%NetBSD.org@localhost>
date: Sun Dec 26 12:32:28 2010 +0000
description:
Re-enable printing of MD data, with appropriate casts.
diffstat:
tests/lib/libc/gen/t_siginfo.c | 20 +++++---------------
1 files changed, 5 insertions(+), 15 deletions(-)
diffs (37 lines):
diff -r e580db904ecd -r 45b01436fa26 tests/lib/libc/gen/t_siginfo.c
--- a/tests/lib/libc/gen/t_siginfo.c Sun Dec 26 12:06:56 2010 +0000
+++ b/tests/lib/libc/gen/t_siginfo.c Sun Dec 26 12:32:28 2010 +0000
@@ -74,14 +74,9 @@
printf("uc_stack %p %lu 0x%x\n", ctx->uc_stack.ss_sp,
(unsigned long)ctx->uc_stack.ss_size,
ctx->uc_stack.ss_flags);
- /*
- * XXX Don't try to print MD __gregs since we don't
- * XXX know what format to use
- *
- for (i = 0; i < __arraycount(mc->__gregs); i++)
- printf("uc_mcontext.greg[%d] 0x%x\n", i,
- uc->uc_mcontext.__gregs[i]);
- */
+ for (i = 0; i < __arraycount(ctx->uc_mcontext.__gregs); i++)
+ printf("uc_mcontext.greg[%d] 0x%lx\n", i,
+ (long)ctx->uc_mcontext.__gregs[i]);
}
}
@@ -134,13 +129,8 @@
printf("si_uid=%d\n", info->si_uid);
printf("si_pid=%d\n", info->si_pid);
printf("si_status=%d\n", info->si_status);
- /*
- * XXX don't print these until we figure out the
- * XXX correct machine-independant format specifier
- *
- printf("si_utime=%u\n", info->si_utime);
- printf("si_stime=%u\n", info->si_stime);
- */
+ printf("si_utime=%lu\n", (unsigned long int)info->si_utime);
+ printf("si_stime=%lu\n", (unsigned long int)info->si_stime);
}
ATF_REQUIRE_EQ(info->si_code, code);
ATF_REQUIRE_EQ(info->si_signo, SIGCHLD);
Home |
Main Index |
Thread Index |
Old Index