* [PATCH] show_token: handle TOKEN_UNTAINT and TOKEN_ARG_COUNT types
@ 2009-04-30 21:08 Reinhard Tartler
2009-08-11 20:39 ` Chris Li
0 siblings, 1 reply; 2+ messages in thread
From: Reinhard Tartler @ 2009-04-30 21:08 UTC (permalink / raw)
To: linux-sparse
These cases are probably never hit with "regular" codepaths, but are
useful when called in a gdb session to print token sequences.
Signed-off-by: Reinhard Tartler <siretart@tauware.de>
---
tokenize.c | 13 +++++++++++--
1 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/tokenize.c b/tokenize.c
index 6b67b96..93dd007 100644
--- a/tokenize.c
+++ b/tokenize.c
@@ -162,9 +162,18 @@ const char *show_token(const struct token *token)
case TOKEN_STREAMEND:
sprintf(buffer, "<end of '%s'>", stream_name(token->pos.stream));
return buffer;
-
+
+ case TOKEN_UNTAINT:
+ sprintf(buffer, "<untaint>");
+ return buffer;
+
+ case TOKEN_ARG_COUNT:
+ sprintf(buffer, "<argcnt>");
+ return buffer;
+
default:
- return "WTF???";
+ sprintf(buffer, "unhandled token type '%d' ", token_type(token));
+ return buffer;
}
}
--
Gruesse/greetings,
Reinhard Tartler, KeyID 945348A4
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-08-11 20:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-30 21:08 [PATCH] show_token: handle TOKEN_UNTAINT and TOKEN_ARG_COUNT types Reinhard Tartler
2009-08-11 20:39 ` Chris Li
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).