summaryrefslogtreecommitdiff
path: root/mem.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>2008-08-25 02:59:36 +0000
committerRoland McGrath <roland@redhat.com>2008-08-25 02:59:36 +0000
commitf4021b146688527fd5250285555653247ad4157d (patch)
treece9aeded08dd05ebecab13b4c94de218fc1e728d /mem.c
parent459ea0b0535fba0019eab2634963e49e623bafab (diff)
downloadstrace-f4021b146688527fd5250285555653247ad4157d.tar.gz
strace-f4021b146688527fd5250285555653247ad4157d.tar.bz2
strace-f4021b146688527fd5250285555653247ad4157d.tar.xz
2008-08-24 Roland McGrath <roland@redhat.com>
* mem.c (madvise_flags): Typo fixes. Rename to madvise_cmds. (sys_madvise): Use printxval, not printflags. Reported by Rajeev V. Pillai <rajeevvp@gmail.com>.
Diffstat (limited to 'mem.c')
-rw-r--r--mem.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/mem.c b/mem.c
index f57dc12..a133b00 100644
--- a/mem.c
+++ b/mem.c
@@ -384,11 +384,11 @@ struct tcb *tcp;
return RVAL_HEX;
}
-static const struct xlat madvise_flags[] = {
+static const struct xlat madvise_cmds[] = {
#ifdef MADV_NORMAL
{ MADV_NORMAL, "MADV_NORMAL" },
#endif
-#ifdef MADZV_RANDOM
+#ifdef MADV_RANDOM
{ MADV_RANDOM, "MADV_RANDOM" },
#endif
#ifdef MADV_SEQUENTIAL
@@ -397,7 +397,7 @@ static const struct xlat madvise_flags[] = {
#ifdef MADV_WILLNEED
{ MADV_WILLNEED, "MADV_WILLNEED" },
#endif
-#ifdef MADV_DONTNED
+#ifdef MADV_DONTNEED
{ MADV_DONTNEED, "MADV_DONTNEED" },
#endif
{ 0, NULL },
@@ -410,7 +410,7 @@ struct tcb *tcp;
{
if (entering(tcp)) {
tprintf("%#lx, %lu, ", tcp->u_arg[0], tcp->u_arg[1]);
- printflags(madvise_flags, tcp->u_arg[2], "MADV_???");
+ printxval(madvise_cmds, tcp->u_arg[2], "MADV_???");
}
return 0;
}