From: Michael Johnson <mjohnson459 at gmail.com>
To: ell at lists.01.org
Subject: [PATCH 2/3] examples: Pass in max logging level
Date: Tue, 17 May 2022 17:18:30 +0100 [thread overview]
Message-ID: <20220517161831.126597-2-mjohnson459@gmail.com> (raw)
In-Reply-To: 20220517161831.126597-1-mjohnson459@gmail.com
[-- Attachment #1: Type: text/plain, Size: 1311 bytes --]
---
examples/dhcp-client.c | 2 +-
examples/netconfig-test.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/examples/dhcp-client.c b/examples/dhcp-client.c
index 0a16ce4..9dcea57 100644
--- a/examples/dhcp-client.c
+++ b/examples/dhcp-client.c
@@ -107,7 +107,7 @@ int main(int argc, char *argv[])
client = l_dhcp_client_new(ifindex);
l_dhcp_client_set_address(client, ARPHRD_ETHER, mac, 6);
l_dhcp_client_set_event_handler(client, event_handler, NULL, NULL);
- l_dhcp_client_set_debug(client, do_debug, "[DHCP] ", NULL);
+ l_dhcp_client_set_debug(client, do_debug, "[DHCP] ", NULL, L_LOG_DEBUG);
l_dhcp_client_start(client);
l_main_run_with_signal(signal_handler, NULL);
diff --git a/examples/netconfig-test.c b/examples/netconfig-test.c
index c9d02ab..d75e4ad 100644
--- a/examples/netconfig-test.c
+++ b/examples/netconfig-test.c
@@ -195,7 +195,7 @@ int main(int argc, char *argv[])
netconfig = l_netconfig_new(ifindex);
l_netconfig_set_event_handler(netconfig, event_handler, NULL, NULL);
l_dhcp_client_set_debug(l_netconfig_get_dhcp_client(netconfig),
- do_debug, "[DHCPv4] ", NULL);
+ do_debug, "[DHCPv4] ", NULL, L_LOG_DEBUG);
l_netconfig_start(netconfig);
l_main_run_with_signal(signal_handler, NULL);
--
2.25.1
reply other threads:[~2022-05-17 16:18 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220517161831.126597-2-mjohnson459@gmail.com \
--to=ell@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).