From: Arran Cudbard-Bell Date: Tue, 6 Jun 2017 14:17:29 +0000 (-0400) Subject: More %pV X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d511c6f1ce8d2a4f5ca7b44b6f7d416ac00221c2;p=thirdparty%2Ffreeradius-server.git More %pV --- diff --git a/src/modules/rlm_perl/rlm_perl.c b/src/modules/rlm_perl/rlm_perl.c index c071d5f714f..65059f21130 100644 --- a/src/modules/rlm_perl/rlm_perl.c +++ b/src/modules/rlm_perl/rlm_perl.c @@ -717,19 +717,15 @@ static void perl_store_vps(UNUSED TALLOC_CTX *ctx, REQUEST *request, VALUE_PAIR */ switch (vp->vp_type) { case FR_TYPE_STRING: - RDEBUG("$%s{'%s'} = &%s:%s -> '%s'", hash_name, vp->da->name, list_name, - vp->da->name, vp->vp_strvalue); + RDEBUG("$%s{'%s'} = &%s:%s -> '%pV'", hash_name, vp->da->name, list_name, + vp->da->name, &vp->data); (void)hv_store(rad_hv, name, strlen(name), newSVpvn(vp->vp_strvalue, vp->vp_length), 0); break; case FR_TYPE_OCTETS: if (RDEBUG_ENABLED) { - char *hex; - - hex = fr_abin2hex(request, vp->vp_octets, vp->vp_length); - RDEBUG("$%s{'%s'} = &%s:%s -> 0x%s", hash_name, vp->da->name, - list_name, vp->da->name, hex); - talloc_free(hex); + RDEBUG("$%s{'%s'} = &%s:%s -> 0x%pV", hash_name, vp->da->name, + list_name, vp->da->name, &vp->data); } (void)hv_store(rad_hv, name, strlen(name), newSVpvn((char const *)vp->vp_octets, vp->vp_length), 0);