X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=networking%2Fudhcp%2Fd6_packet.c;h=e166f520de994b50c2c9f77094297ee4dc4e103e;hb=89193f985bf50af702e0f98a3c86573277c03287;hp=79b2946ef82b3cca3e3f93453ea5293ba8f49c40;hpb=2b6a6b90cc7cebe777ce5d6eec10ecfc8f7a54b7;p=oweals%2Fbusybox.git diff --git a/networking/udhcp/d6_packet.c b/networking/udhcp/d6_packet.c index 79b2946ef..e166f520d 100644 --- a/networking/udhcp/d6_packet.c +++ b/networking/udhcp/d6_packet.c @@ -17,12 +17,12 @@ void FAST_FUNC d6_dump_packet(struct d6_packet *packet) if (dhcp_verbose < 2) return; - bb_info_msg( - " xid %x" + bb_error_msg( + "xid %x" , packet->d6_xid32 ); //*bin2hex(buf, (void *) packet->chaddr, sizeof(packet->chaddr)) = '\0'; - //bb_info_msg(" chaddr %s", buf); + //bb_error_msg(" chaddr %s", buf); } #endif @@ -35,15 +35,15 @@ int FAST_FUNC d6_recv_kernel_packet(struct in6_addr *peer_ipv6 memset(packet, 0, sizeof(*packet)); bytes = safe_read(fd, packet, sizeof(*packet)); if (bytes < 0) { - log1("Packet read error, ignoring"); + log1("packet read error, ignoring"); return bytes; /* returns -1 */ } if (bytes < offsetof(struct d6_packet, d6_options)) { - bb_info_msg("Packet with bad magic, ignoring"); + bb_error_msg("packet with bad magic, ignoring"); return -2; } - log1("Received a packet"); + log1("received %s", "a packet"); d6_dump_packet(packet); return bytes;