aboutsummaryrefslogtreecommitdiff
path: root/sys/cddl/dev/sdt/sdt.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/cddl/dev/sdt/sdt.c')
-rw-r--r--sys/cddl/dev/sdt/sdt.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/cddl/dev/sdt/sdt.c b/sys/cddl/dev/sdt/sdt.c
index a1cd1e2ddba5..b65d1ad1bcf6 100644
--- a/sys/cddl/dev/sdt/sdt.c
+++ b/sys/cddl/dev/sdt/sdt.c
@@ -201,11 +201,15 @@ sdt_getargdesc(void *arg, dtrace_id_t id, void *parg, dtrace_argdesc_t *desc)
if (desc->dtargd_ndx < probe->n_args) {
TAILQ_FOREACH(argtype, &probe->argtype_list, argtype_entry) {
if (desc->dtargd_ndx == argtype->ndx) {
- /* XXX */
desc->dtargd_mapping = desc->dtargd_ndx;
strlcpy(desc->dtargd_native, argtype->type,
sizeof(desc->dtargd_native));
- desc->dtargd_xlate[0] = '\0'; /* XXX */
+ if (argtype->xtype != NULL)
+ strlcpy(desc->dtargd_xlate,
+ argtype->xtype,
+ sizeof(desc->dtargd_xlate));
+ else
+ desc->dtargd_xlate[0] = '\0';
}
}
} else