diff options
author | Tom Gundersen <teg@jklm.no> | 2014-02-22 19:53:45 +0100 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2014-02-22 21:24:36 +0100 |
commit | ee57a737a5b72bc3f3f46aafd2bbc452b61dcaa7 (patch) | |
tree | b8e15a2bd59eeed001f612012e480df1dda3d784 /src/libsystemd-dhcp/dhcp-internal.h | |
parent | 41fd4c4c15e74a39cecfa5f1764e039c8d88617b (diff) |
sd-dhcp: add very basic debug logging
Diffstat (limited to 'src/libsystemd-dhcp/dhcp-internal.h')
-rw-r--r-- | src/libsystemd-dhcp/dhcp-internal.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libsystemd-dhcp/dhcp-internal.h b/src/libsystemd-dhcp/dhcp-internal.h index 7639069cf2..efb8ea5411 100644 --- a/src/libsystemd-dhcp/dhcp-internal.h +++ b/src/libsystemd-dhcp/dhcp-internal.h @@ -51,3 +51,5 @@ int dhcp_message_init(DHCPMessage *message, uint8_t op, uint32_t xid, uint8_t ty void dhcp_packet_append_ip_headers(DHCPPacket *packet, uint8_t op, uint16_t len); int dhcp_packet_verify_headers(DHCPPacket *packet, uint8_t op, size_t len); + +#define log_dhcp_client(client, fmt, ...) log_meta(LOG_DEBUG, __FILE__, __LINE__, __func__, "DHCP CLIENT: " fmt, ##__VA_ARGS__) |