From: Ben Warren <biggerbadderben@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] minor debug cleanups in ./net
Date: Wed, 22 Jul 2009 23:27:14 -0700 [thread overview]
Message-ID: <4A6802C2.1030701@gmail.com> (raw)
In-Reply-To: <200907221856.46498.rgetz@blackfin.uclinux.org>
Robin,
This won't apply:
bwarren at bwarren-bldsrv:~/src/u-boot-net$ git am -s --whitespace=strip ~/h_drive/patches/minor\ debug\ cleanups\ in\ ._net.eml
Applying minor debug cleanups in ./net
fatal: patch fragment without header at line 198: @@ -879,13 +856,13 @@ DhcpHandler(uchar * pkt, unsigned dest, unsigned src, unsigned len)
Patch failed at 0001.
When you have resolved this problem run "git-am --resolved".
If you would prefer to skip this patch, instead run "git-am --skip".
More issues below:
Robin Getz wrote:
> From: Robin Getz <rgetz@blackfin.uclinux.org>
>
> 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>
>
> ---
>
>
<snip>
> /* matched waiting packet's address */
> if (tmp == NetArpWaitReplyIP) {
> -#ifdef ET_DEBUG
> - puts ("Got it\n");
> + debug("Got it\n");
> #endif
>
I'm guessing you want to remove this #endif too, right?
> /* save address for later use */
> memcpy(NetArpWaitPacketMAC, &arp->ar_data[0], 6);
> @@ -1317,16 +1295,14 @@ NetReceive(volatile uchar * inpkt, int len)
> }
> return;
> default:
> -#ifdef ET_DEBUG
> - printf("Unexpected ARP opcode 0x%x\n", ntohs(arp->ar_op));
> + debug("Unexpected ARP opcode 0x%x\n", ntohs(arp->ar_op));
> #endif
>
ditto
> return;
> }
> break;
>
> case PROT_RARP:
> -#ifdef ET_DEBUG
> - puts ("Got RARP\n");
> + debug("Got RARP\n");
> #endif
>
And again...
<snip>
This is good stuff. Please clean it up and re-submit.
regards,
Ben
next prev parent reply other threads:[~2009-07-23 6:27 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-22 22:56 [U-Boot] minor debug cleanups in ./net Robin Getz
2009-07-23 6:27 ` Ben Warren [this message]
2009-07-23 7:01 ` Robin Getz
2009-08-06 18:27 ` Robin Getz
2009-08-06 18:52 ` Ben Warren
2009-08-06 19:40 ` Wolfgang Denk
2009-08-06 19:57 ` Robin Getz
2009-08-06 20:04 ` Ben Warren
2009-08-06 22:22 ` Wolfgang Denk
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4A6802C2.1030701@gmail.com \
--to=biggerbadderben@gmail.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox