diff options
author | Denys Vlasenko <dvlasenk@redhat.com> | 2009-03-23 13:12:46 +0000 |
---|---|---|
committer | Denys Vlasenko <dvlasenk@redhat.com> | 2009-03-23 13:12:46 +0000 |
commit | 132c52a5ccf7b12a44a617f06c97d3f4344a4421 (patch) | |
tree | 0632b3f1e41b65008ed6429af9ac1e0ceb0745d4 /system.c | |
parent | 39fa62802071eac3ce9aaf70568d75340db85346 (diff) | |
download | strace-132c52a5ccf7b12a44a617f06c97d3f4344a4421.tar.gz strace-132c52a5ccf7b12a44a617f06c97d3f4344a4421.tar.bz2 strace-132c52a5ccf7b12a44a617f06c97d3f4344a4421.tar.xz |
* system.c (sram_alloc_flag): Add L2_SRAM constant.
by Mike Frysinger (vapier AT gentoo.org).
(sys_sram_alloc): Fix improperly used %zu:
tcp->u_arg is not a size_t, it is a long.
* net.c (printcmsghdr): Fix improperly used %zu:
struct cmsghdr::cmsg_len is not a size_t.
Diffstat (limited to 'system.c')
-rw-r--r-- | system.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -302,18 +302,18 @@ static const struct xlat sram_alloc_flags[] = { { L1_DATA_A_SRAM, "L1_DATA_A_SRAM" }, { L1_DATA_B_SRAM, "L1_DATA_B_SRAM" }, { L1_DATA_SRAM, "L1_DATA_SRAM" }, + { L2_SRAM, "L2_SRAM" }, { 0, NULL }, }; int -sys_sram_alloc(tcp) -struct tcb *tcp; +sys_sram_alloc(struct tcb *tcp) { if (entering(tcp)) { /* size */ - tprintf("%zu, ", tcp->u_arg[0]); + tprintf("%lu, ", tcp->u_arg[0]); /* flags */ - printxval(sram_alloc_flags, tcp->u_arg[1], "L1_???_SRAM"); + printxval(sram_alloc_flags, tcp->u_arg[1], "???_SRAM"); } return 1; } |