From 8e67a997469cfdc08db58a214612f63dd6e8ebab Mon Sep 17 00:00:00 2001 From: zhaolei Date: Tue, 9 Oct 2007 23:52:54 +0000 Subject: 2007-10-10 Zhaolei From Lai Jiangshan * aux_syscalls.stp (_stp_lookup_or_str) redirect to _stp_lookup_str if val is 0. --- tapset/aux_syscalls.stp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tapset/aux_syscalls.stp') diff --git a/tapset/aux_syscalls.stp b/tapset/aux_syscalls.stp index 6d6fa311..08018ad2 100644 --- a/tapset/aux_syscalls.stp +++ b/tapset/aux_syscalls.stp @@ -1533,6 +1533,10 @@ void _stp_lookup_str(const _stp_val_array * const array, long val, char *ptr, in void _stp_lookup_or_str(const _stp_val_array * const array, long val, char *ptr, int len) { int i = 0, flag = 0; + if (val == 0) { + _stp_lookup_str(array, val, ptr, len); + return; + } while (array[i].name) { if (array[i].val & val) { if (flag) -- cgit