aboutsummaryrefslogtreecommitdiff
path: root/kernel/features
diff options
context:
space:
mode:
authorMarvin Borner2020-11-02 18:12:25 +0100
committerMarvin Borner2020-11-02 18:12:25 +0100
commit1ee757fb521376f8909a37bcc74ea792879966eb (patch)
treef9de91e037ac7551391fb69b53beace84b13b203 /kernel/features
parent85ab89fd27347032bc1930e31615f71a5078b047 (diff)
Better logging
Diffstat (limited to 'kernel/features')
-rw-r--r--kernel/features/net.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/features/net.c b/kernel/features/net.c
index 90d7bab..01cbb47 100644
--- a/kernel/features/net.c
+++ b/kernel/features/net.c
@@ -129,8 +129,8 @@ void ip_send_packet(u32 dst, void *data, int len, int prot)
}
}
cli();
- printf("%x:%x:%x:%x:%x:%x\n", dst_mac[0], dst_mac[1], dst_mac[2], dst_mac[3], dst_mac[4],
- dst_mac[5]);
+ printf("Destination: %x:%x:%x:%x:%x:%x\n", dst_mac[0], dst_mac[1], dst_mac[2], dst_mac[3],
+ dst_mac[4], dst_mac[5]);
ethernet_send_packet(dst_mac, (u8 *)packet, htons(packet->length), ETHERNET_TYPE_IP4);
free(packet);
@@ -191,7 +191,7 @@ void dhcp_handle_packet(struct dhcp_packet *packet)
dhcp_request();
} else if (*type == 5) { // ACK
ip_addr = packet->your_ip;
- printf("ACK! %x\n", ip_addr);
+ printf("ACK! New IP: %x\n", ip_addr);
}
free(type);
}