summaryrefslogtreecommitdiffstats
path: root/tapset/conversions.stp
diff options
context:
space:
mode:
authorhunt <hunt>2006-07-11 20:38:35 +0000
committerhunt <hunt>2006-07-11 20:38:35 +0000
commit2c5335822bbbc0589ebe2a1815a295e6df2317c7 (patch)
tree6efd8a408ca46696a5da26f84411ae79ccd38627 /tapset/conversions.stp
parent6d66b0c445045e559c2b7eaf9a6931e24a90cc6a (diff)
downloadsystemtap-steved-2c5335822bbbc0589ebe2a1815a295e6df2317c7.tar.gz
systemtap-steved-2c5335822bbbc0589ebe2a1815a295e6df2317c7.tar.xz
systemtap-steved-2c5335822bbbc0589ebe2a1815a295e6df2317c7.zip
*** empty log message ***
Diffstat (limited to 'tapset/conversions.stp')
-rw-r--r--tapset/conversions.stp12
1 files changed, 3 insertions, 9 deletions
diff --git a/tapset/conversions.stp b/tapset/conversions.stp
index 96c7162a..c311d25a 100644
--- a/tapset/conversions.stp
+++ b/tapset/conversions.stp
@@ -51,14 +51,8 @@ function user_string_warn:string (addr:long) %{ /* pure */
%}
function user_string_quoted:string (addr:long) %{ /* pure */
- if (THIS->addr == 0)
+ if (THIS->addr == 0)
strlcpy (THIS->__retvalue, "NULL", MAXSTRINGLEN);
- else {
- *THIS->__retvalue = '\"';
- if (_stp_strncpy_from_user (THIS->__retvalue+1,
- (const char __user*) (uintptr_t) THIS->addr, MAXSTRINGLEN-2) < 0)
- strlcpy (THIS->__retvalue, "<unknown>", MAXSTRINGLEN);
- else
- strlcat(THIS->__retvalue, "\"", MAXSTRINGLEN);
- }
+ else
+ _stp_text_str(THIS->__retvalue, (char *)(uintptr_t)THIS->addr, MAXSTRINGLEN, 1, 1);
%}