mirror of
https://github.com/samba-team/samba.git
synced 2025-02-03 13:47:25 +03:00
r4519: added the enum print function in ndr_basic.c
(This used to be commit 29955004aa256d5ac27b941f48384ab97ff5e4b8)
This commit is contained in:
parent
3acf026603
commit
8448dd6ea0
@ -999,6 +999,12 @@ void ndr_print_struct(struct ndr_print *ndr, const char *name, const char *type)
|
||||
ndr->print(ndr, "%s: struct %s", name, type);
|
||||
}
|
||||
|
||||
void ndr_print_enum(struct ndr_print *ndr, const char *name, const char *type,
|
||||
const char *val, uint32_t value)
|
||||
{
|
||||
ndr->print(ndr, "%-25s: %s (%u)", name, val?val:"UNKNOWN", value);
|
||||
}
|
||||
|
||||
void ndr_print_uint8(struct ndr_print *ndr, const char *name, uint8_t v)
|
||||
{
|
||||
ndr->print(ndr, "%-25s: 0x%02x (%u)", name, v, v);
|
||||
|
Loading…
x
Reference in New Issue
Block a user