diff options
author | Lukas Slebodnik <lslebodn@redhat.com> | 2014-10-01 15:58:24 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2014-10-09 17:08:32 +0200 |
commit | 0433376c464da45753b3444b14f984f79cc3d770 (patch) | |
tree | a887245a35dbfefd5e8110131eae6599d71a4c90 /src/providers | |
parent | 87d3b47abba6a40fcf809c85a2b138bc1013d9c5 (diff) | |
download | sssd-0433376c464da45753b3444b14f984f79cc3d770.tar.gz sssd-0433376c464da45753b3444b14f984f79cc3d770.tar.xz sssd-0433376c464da45753b3444b14f984f79cc3d770.zip |
DP: Print a type as hexadecimal number in debug message.
All request from nss responder, start in domain log with debug message
in function be_get_account_info e.g.
[be_get_account_info] (0x0100): Got request for [4099][1][name=user1]
[be_get_account_info] (0x0100): Got request for [4098][1][name=group1]
[be_get_account_info] (0x0100): Got request for [4097][1][name=user1]
The 1st number is type, which is defined as hexadecimal nuber
in header file src/providers/data_provider.h
#define BE_REQ_USER 0x0001
#define BE_REQ_GROUP 0x0002
#define BE_REQ_INITGROUPS 0x0003
...
This patch changes formatting from decimal representation to hexadecimal;
so you needn't convert it in head while analysing log files.
Reviewed-by: Pavel Reichl <preichl@redhat.com>
Diffstat (limited to 'src/providers')
-rw-r--r-- | src/providers/data_provider_be.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/providers/data_provider_be.c b/src/providers/data_provider_be.c index d5dc02419..6e7fcd510 100644 --- a/src/providers/data_provider_be.c +++ b/src/providers/data_provider_be.c @@ -1093,7 +1093,7 @@ static int be_get_account_info(struct sbus_request *dbus_req, void *user_data) return EOK; /* handled */ DEBUG(SSSDBG_FUNC_DATA, - "Got request for [%u][%d][%s]\n", type, attr_type, filter); + "Got request for [%#x][%d][%s]\n", type, attr_type, filter); /* If we are offline and fast reply was requested * return offline immediately |