aboutsummaryrefslogtreecommitdiff
path: root/kernel
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
parent85ab89fd27347032bc1930e31615f71a5078b047 (diff)
Better logging
Diffstat (limited to 'kernel')
-rw-r--r--kernel/drivers/rtl8139.c2
-rw-r--r--kernel/features/net.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/kernel/drivers/rtl8139.c b/kernel/drivers/rtl8139.c
index 7550c75..3205e80 100644
--- a/kernel/drivers/rtl8139.c
+++ b/kernel/drivers/rtl8139.c
@@ -71,7 +71,7 @@ void rtl8139_send_packet(void *data, u32 len)
if (!rtl_device_pci)
return;
- printf("Sending packet %d\n\n", len);
+ printf("RTL8139 send packet (size: %d)\n\n", len);
outl(rtl_iobase + tsad_array[tx_current], (u32)data);
outl(rtl_iobase + tsd_array[tx_current++], len);
if (tx_current > 3)
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);
}