summaryrefslogtreecommitdiffstats
path: root/src/providers/data_provider_be.c
diff options
context:
space:
mode:
authorPetr Cech <pcech@redhat.com>2015-08-18 06:59:31 -0400
committerJakub Hrozek <jhrozek@redhat.com>2015-09-14 16:00:49 +0200
commit376eaf187c13c2a1eaea0ffbdd970b6b563ab74c (patch)
tree0b4829b53497f0020d22385ef4e65c883ea8e5e2 /src/providers/data_provider_be.c
parentb3074dca3acebd91437ef13d3329d6d65d655215 (diff)
downloadsssd-376eaf187c13c2a1eaea0ffbdd970b6b563ab74c.tar.gz
sssd-376eaf187c13c2a1eaea0ffbdd970b6b563ab74c.tar.xz
sssd-376eaf187c13c2a1eaea0ffbdd970b6b563ab74c.zip
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 <preichl@redhat.com>
Diffstat (limited to 'src/providers/data_provider_be.c')
-rw-r--r--src/providers/data_provider_be.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/providers/data_provider_be.c b/src/providers/data_provider_be.c
index d14763024..d71a69cb8 100644
--- a/src/providers/data_provider_be.c
+++ b/src/providers/data_provider_be.c
@@ -1104,7 +1104,8 @@ static int be_get_account_info(struct sbus_request *dbus_req, void *user_data)
return EOK; /* handled */
DEBUG(SSSDBG_FUNC_DATA,
- "Got request for [%#x][%d][%s]\n", type, attr_type, filter);
+ "Got request for [%#x][%s][%d][%s]\n", type, be_req2str(type),
+ attr_type, filter);
/* If we are offline and fast reply was requested
* return offline immediately