* [U-Boot] [PATCH] Fix debug output.
@ 2009-12-07 9:21 Thomas Weber
2009-12-07 10:43 ` Mike Frysinger
2009-12-07 12:07 ` Wolfgang Denk
0 siblings, 2 replies; 9+ messages in thread
From: Thomas Weber @ 2009-12-07 9:21 UTC (permalink / raw)
To: u-boot
Signed-off-by: Thomas Weber <weber@corscience.de>
---
drivers/net/dm9000x.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/net/dm9000x.c b/drivers/net/dm9000x.c
index 73dd335..08bd794 100644
--- a/drivers/net/dm9000x.c
+++ b/drivers/net/dm9000x.c
@@ -74,8 +74,8 @@ TODO: external MII is not functional, only internal at the moment.
#define DM9000_DBG(fmt,args...) printf(fmt, ##args)
#define DM9000_DMP_PACKET(func,packet,length) \
do { \
- int i; \
- printf(func ": length: %d\n", length); \
+ int i; \
+ printf("%s: length: %d\n",func, length); \
for (i = 0; i < length; i++) { \
if (i % 8 == 0) \
printf("\n%s: %02x: ", func, i); \
--
1.6.4.4
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [U-Boot] [PATCH] Fix debug output.
2009-12-07 9:21 [U-Boot] [PATCH] Fix debug output Thomas Weber
@ 2009-12-07 10:43 ` Mike Frysinger
2009-12-07 11:27 ` Thomas Weber
2009-12-07 12:07 ` Wolfgang Denk
1 sibling, 1 reply; 9+ messages in thread
From: Mike Frysinger @ 2009-12-07 10:43 UTC (permalink / raw)
To: u-boot
your subject line really needs a prefix to narrow down where exactly your fix
is going. it also should not have a period.
net: dm9000x: fix debug output
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20091207/f82635d6/attachment.pgp
^ permalink raw reply [flat|nested] 9+ messages in thread
* [U-Boot] [PATCH] Fix debug output.
2009-12-07 10:43 ` Mike Frysinger
@ 2009-12-07 11:27 ` Thomas Weber
2009-12-07 12:08 ` Wolfgang Denk
0 siblings, 1 reply; 9+ messages in thread
From: Thomas Weber @ 2009-12-07 11:27 UTC (permalink / raw)
To: u-boot
Mike Frysinger schrieb:
> your subject line really needs a prefix to narrow down where exactly your fix
> is going. it also should not have a period.
>
> net: dm9000x: fix debug output
> -mike
>
Hello,
should i resend the patch with the corrected subject line?
Thomas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 262 bytes
Desc: OpenPGP digital signature
Url : http://lists.denx.de/pipermail/u-boot/attachments/20091207/d90264bf/attachment.pgp
^ permalink raw reply [flat|nested] 9+ messages in thread
* [U-Boot] [PATCH] Fix debug output.
2009-12-07 9:21 [U-Boot] [PATCH] Fix debug output Thomas Weber
2009-12-07 10:43 ` Mike Frysinger
@ 2009-12-07 12:07 ` Wolfgang Denk
2009-12-07 13:11 ` Thomas Weber
1 sibling, 1 reply; 9+ messages in thread
From: Wolfgang Denk @ 2009-12-07 12:07 UTC (permalink / raw)
To: u-boot
Dear Thomas Weber,
In message <1260177679-18337-1-git-send-email-weber@corscience.de> you wrote:
> Signed-off-by: Thomas Weber <weber@corscience.de>
> ---
> drivers/net/dm9000x.c | 4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/net/dm9000x.c b/drivers/net/dm9000x.c
> index 73dd335..08bd794 100644
> --- a/drivers/net/dm9000x.c
> +++ b/drivers/net/dm9000x.c
> @@ -74,8 +74,8 @@ TODO: external MII is not functional, only internal at the moment.
> #define DM9000_DBG(fmt,args...) printf(fmt, ##args)
> #define DM9000_DMP_PACKET(func,packet,length) \
> do { \
> - int i; \
> - printf(func ": length: %d\n", length); \
> + int i; \
> + printf("%s: length: %d\n",func, length); \
> for (i = 0; i < length; i++) { \
> if (i % 8 == 0) \
> printf("\n%s: %02x: ", func, i); \
Which problem is this supposed to fix?
Actually this patch introduces two new issues (the "int i;" line uses
spaces for indentation, and the '\' are not vertically aligned any
more).
NAK.
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
A girl with a future avoids the man with a past.
-- Evan Esar, "The Humor of Humor"
^ permalink raw reply [flat|nested] 9+ messages in thread
* [U-Boot] [PATCH] Fix debug output.
2009-12-07 11:27 ` Thomas Weber
@ 2009-12-07 12:08 ` Wolfgang Denk
0 siblings, 0 replies; 9+ messages in thread
From: Wolfgang Denk @ 2009-12-07 12:08 UTC (permalink / raw)
To: u-boot
Dear Thomas Weber,
In message <4B1CE6A5.3080407@corscience.de> you wrote:
>
> should i resend the patch with the corrected subject line?
No, because it needs other fixes (and explanations) anyway.
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
There are no data that cannot be plotted on a straight line if the
axis are chosen correctly.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [U-Boot] [PATCH] Fix debug output.
2009-12-07 12:07 ` Wolfgang Denk
@ 2009-12-07 13:11 ` Thomas Weber
2009-12-07 20:09 ` Wolfgang Denk
0 siblings, 1 reply; 9+ messages in thread
From: Thomas Weber @ 2009-12-07 13:11 UTC (permalink / raw)
To: u-boot
Wolfgang Denk schrieb:
> Dear Thomas Weber,
>
> In message <1260177679-18337-1-git-send-email-weber@corscience.de> you wrote:
>
>> Signed-off-by: Thomas Weber <weber@corscience.de>
>> ---
>> drivers/net/dm9000x.c | 4 ++--
>> 1 files changed, 2 insertions(+), 2 deletions(-)
>>
>> diff --git a/drivers/net/dm9000x.c b/drivers/net/dm9000x.c
>> index 73dd335..08bd794 100644
>> --- a/drivers/net/dm9000x.c
>> +++ b/drivers/net/dm9000x.c
>> @@ -74,8 +74,8 @@ TODO: external MII is not functional, only internal at the moment.
>> #define DM9000_DBG(fmt,args...) printf(fmt, ##args)
>> #define DM9000_DMP_PACKET(func,packet,length) \
>> do { \
>> - int i; \
>> - printf(func ": length: %d\n", length); \
>> + int i; \
>> + printf("%s: length: %d\n",func, length); \
>> for (i = 0; i < length; i++) { \
>> if (i % 8 == 0) \
>> printf("\n%s: %02x: ", func, i); \
>>
>
> Which problem is this supposed to fix?
>
> Actually this patch introduces two new issues (the "int i;" line uses
> spaces for indentation, and the '\' are not vertically aligned any
> more).
>
> NAK.
>
> Best regards,
>
> Wolfgang Denk
>
>
Hello,
In commit 60f61e6d7655400bb785a2ef637581679941f6d1 the following calls
where changed.
- DM9000_DMP_PACKET("eth_send", packet, length);
+ DM9000_DMP_PACKET(__func__ , packet, length);
- DM9000_DMP_PACKET("eth_rx", rdptr, RxLen);
+ DM9000_DMP_PACKET(__func__ , rdptr, RxLen);
The identifier __func__ is used to call this macro. Formerly it was a
string "eth_send" for the function name.
printf("eth_send" ":length ...") worked, but printf(__func__ ":length
...") doesn't compile. (tested with gcc-4.4.1)
Sorry, for space and it was the wrong tab space :(
Best Regards.
Thomas Weber
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 262 bytes
Desc: OpenPGP digital signature
Url : http://lists.denx.de/pipermail/u-boot/attachments/20091207/98f919f0/attachment.pgp
^ permalink raw reply [flat|nested] 9+ messages in thread
* [U-Boot] [PATCH] Fix debug output.
2009-12-07 13:11 ` Thomas Weber
@ 2009-12-07 20:09 ` Wolfgang Denk
2009-12-08 20:38 ` Thomas Weber
0 siblings, 1 reply; 9+ messages in thread
From: Wolfgang Denk @ 2009-12-07 20:09 UTC (permalink / raw)
To: u-boot
Dear Thomas Weber,
In message <4B1CFEF3.7080302@corscience.de> you wrote:
>
> > Which problem is this supposed to fix?
...
> In commit 60f61e6d7655400bb785a2ef637581679941f6d1 the following calls
> where changed.
>
> - DM9000_DMP_PACKET("eth_send", packet, length);
> + DM9000_DMP_PACKET(__func__ , packet, length);
>
> - DM9000_DMP_PACKET("eth_rx", rdptr, RxLen);
> + DM9000_DMP_PACKET(__func__ , rdptr, RxLen);
>
> The identifier __func__ is used to call this macro. Formerly it was a
> string "eth_send" for the function name.
>
> printf("eth_send" ":length ...") worked, but printf(__func__ ":length
> ...") doesn't compile. (tested with gcc-4.4.1)
Well, and exactly this is valuable information which should be
included into the commit message.
Indeed, neither __func__ nor __FUNCTION__ can be concatenated; for
some reason gcc seems to consider these as strings, but not as string
constants. Dunno why; probably there is a good reason for this, but
it looks stupid to me.
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Not one hundred percent efficient, of course ... but nothing ever is.
-- Kirk, "Metamorphosis", stardate 3219.8
^ permalink raw reply [flat|nested] 9+ messages in thread
* [U-Boot] [PATCH] Fix debug output.
2009-12-07 20:09 ` Wolfgang Denk
@ 2009-12-08 20:38 ` Thomas Weber
2009-12-08 20:43 ` Wolfgang Denk
0 siblings, 1 reply; 9+ messages in thread
From: Thomas Weber @ 2009-12-08 20:38 UTC (permalink / raw)
To: u-boot
Wolfgang Denk schrieb:
> Dear Thomas Weber,
>
> In message <4B1CFEF3.7080302@corscience.de> you wrote:
>
>>> Which problem is this supposed to fix?
>>>
> ...
>
>> In commit 60f61e6d7655400bb785a2ef637581679941f6d1 the following calls
>> where changed.
>>
>> - DM9000_DMP_PACKET("eth_send", packet, length);
>> + DM9000_DMP_PACKET(__func__ , packet, length);
>>
>> - DM9000_DMP_PACKET("eth_rx", rdptr, RxLen);
>> + DM9000_DMP_PACKET(__func__ , rdptr, RxLen);
>>
>> The identifier __func__ is used to call this macro. Formerly it was a
>> string "eth_send" for the function name.
>>
>> printf("eth_send" ":length ...") worked, but printf(__func__ ":length
>> ...") doesn't compile. (tested with gcc-4.4.1)
>>
>
> Well, and exactly this is valuable information which should be
> included into the commit message.
>
> Indeed, neither __func__ nor __FUNCTION__ can be concatenated; for
> some reason gcc seems to consider these as strings, but not as string
> constants. Dunno why; probably there is a good reason for this, but
> it looks stupid to me.
>
> Best regards,
>
> Wolfgang Denk
>
>
Hello,
should I resend the better formatted patch with a proper subject line
and a more detailed comment? How to name the patch? [Patch V2] ?
Thomas Weber
^ permalink raw reply [flat|nested] 9+ messages in thread
* [U-Boot] [PATCH] Fix debug output.
2009-12-08 20:38 ` Thomas Weber
@ 2009-12-08 20:43 ` Wolfgang Denk
0 siblings, 0 replies; 9+ messages in thread
From: Wolfgang Denk @ 2009-12-08 20:43 UTC (permalink / raw)
To: u-boot
Dear Thomas Weber,
In message <4B1EB952.1070904@gmx.li> you wrote:
>
> should I resend the better formatted patch with a proper subject line
> and a more detailed comment? How to name the patch? [Patch V2] ?
2 x yes, please.
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
How come everyone's going so slow if it's called rush hour?
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2009-12-08 20:43 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-07 9:21 [U-Boot] [PATCH] Fix debug output Thomas Weber
2009-12-07 10:43 ` Mike Frysinger
2009-12-07 11:27 ` Thomas Weber
2009-12-07 12:08 ` Wolfgang Denk
2009-12-07 12:07 ` Wolfgang Denk
2009-12-07 13:11 ` Thomas Weber
2009-12-07 20:09 ` Wolfgang Denk
2009-12-08 20:38 ` Thomas Weber
2009-12-08 20:43 ` Wolfgang Denk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox