]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test-dhcp-server: add usual headers
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 27 Jan 2022 06:40:40 +0000 (15:40 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 1 Feb 2022 02:56:22 +0000 (11:56 +0900)
src/libsystemd-network/test-dhcp-server.c

index 394a8e401dc712381a1940f78ebe68019f3dbaec..cc3043a407a17f6e1812d612062565d3bb51b6e0 100644 (file)
@@ -31,6 +31,8 @@ static int test_basic(bool bind_to_interface) {
         };
         int r;
 
+        log_debug("/* %s(bind_to_interface=%s) */", __func__, yes_no(bind_to_interface));
+
         assert_se(sd_event_new(&event) >= 0);
 
         /* attach to loopback interface */
@@ -112,6 +114,8 @@ static void test_message_handler(void) {
                 .s_addr = htobe32(INADDR_LOOPBACK),
         };
 
+        log_debug("/* %s */", __func__);
+
         assert_se(sd_dhcp_server_new(&server, 1) >= 0);
         assert_se(sd_dhcp_server_configure_pool(server, &address_lo, 8, 0, 0) >= 0);
         assert_se(sd_dhcp_server_attach_event(server, NULL, 0) >= 0);
@@ -205,6 +209,8 @@ static void test_client_id_hash(void) {
                 '8', '9', 'A', 'B', 'C', 'D', 'E', 'F',
         };
 
+        log_debug("/* %s */", __func__);
+
         a.data = (uint8_t*)strdup("abcd");
         b.data = (uint8_t*)strdup("abcd");