From 376eaf187c13c2a1eaea0ffbdd970b6b563ab74c Mon Sep 17 00:00:00 2001 From: Petr Cech Date: Tue, 18 Aug 2015 06:59:31 -0400 Subject: DATA_PROVIDER: BE_REQ as string in log message Add be_req2str() for translation BE_REQ to string. So we will have || Got request for [0x1001][FAST BE_REQ_USER][1][name=celestian] instead of || Got request for [0x1001][1][name=celestian] Function be_req2str() is used in data provider and in responder too. So this patch create new header file data_provider_req.h which delivers function be_req2str() and definitions of BE_REQ_*. Resolves: https://fedorahosted.org/sssd/ticket/2708 Reviewed-by: Pavel Reichl --- src/responder/common/responder_dp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/responder') diff --git a/src/responder/common/responder_dp.c b/src/responder/common/responder_dp.c index f7f8df04e..d1c1609ca 100644 --- a/src/responder/common/responder_dp.c +++ b/src/responder/common/responder_dp.c @@ -620,8 +620,8 @@ sss_dp_get_account_msg(void *pvt) /* create the message */ DEBUG(SSSDBG_TRACE_FUNC, - "Creating request for [%s][%u][%d][%s]\n", - info->dom->name, be_type, attrs, filter); + "Creating request for [%s][%#x][%s][%d][%s]\n", + info->dom->name, be_type, be_req2str(be_type), attrs, filter); dbret = dbus_message_append_args(msg, DBUS_TYPE_UINT32, &be_type, -- cgit