mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 08:42:12 +02:00
minor debug cleanups in ./net
Minor ./net cleanups - no functional changes - change #ifdef DEBUG printf(); #endif to just debug() - changed __FUNCTION__ to __func__ - got rid of extra whitespace between function and opening brace - removed unnecessary braces on if statements gcc dead code elimination should make this functionally/size equivalent when DEBUG is not defined. (confirmed on Blackfin, with gcc 4.3.3). Signed-off-by: Robin Getz <rgetz@blackfin.uclinux.org> Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
This commit is contained in:
@@ -23,7 +23,7 @@ SntpSend (void)
|
||||
int pktlen = SNTP_PACKET_LEN;
|
||||
int sport;
|
||||
|
||||
debug ("%s\n", __FUNCTION__);
|
||||
debug("%s\n", __func__);
|
||||
|
||||
memset (&pkt, 0, sizeof(pkt));
|
||||
|
||||
@@ -54,7 +54,7 @@ SntpHandler (uchar *pkt, unsigned dest, unsigned src, unsigned len)
|
||||
struct rtc_time tm;
|
||||
ulong seconds;
|
||||
|
||||
debug ("%s\n", __FUNCTION__);
|
||||
debug("%s\n", __func__);
|
||||
|
||||
if (dest != SntpOurPort) return;
|
||||
|
||||
@@ -78,7 +78,7 @@ SntpHandler (uchar *pkt, unsigned dest, unsigned src, unsigned len)
|
||||
void
|
||||
SntpStart (void)
|
||||
{
|
||||
debug ("%s\n", __FUNCTION__);
|
||||
debug("%s\n", __func__);
|
||||
|
||||
NetSetTimeout (SNTP_TIMEOUT, SntpTimeout);
|
||||
NetSetHandler(SntpHandler);
|
||||
|
Reference in New Issue
Block a user