Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* New ARI warning Wed May 26 01:54:51 UTC 2010
@ 2010-05-26  2:47 GDB Administrator
  2010-05-26  4:44 ` Doug Evans
  0 siblings, 1 reply; 4+ messages in thread
From: GDB Administrator @ 2010-05-26  2:47 UTC (permalink / raw)
  To: gdb-patches

1084a1085
> gdb/python/py-cmd.c:192: gettext: _ markup: All messages should be marked up with _.
gdb/python/py-cmd.c:192:	error ("%s", msg);


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: New ARI warning Wed May 26 01:54:51 UTC 2010
  2010-05-26  2:47 New ARI warning Wed May 26 01:54:51 UTC 2010 GDB Administrator
@ 2010-05-26  4:44 ` Doug Evans
  2010-05-26  9:06   ` Pierre Muller
  0 siblings, 1 reply; 4+ messages in thread
From: Doug Evans @ 2010-05-26  4:44 UTC (permalink / raw)
  To: gdb-patches

On Tue, May 25, 2010 at 6:54 PM, GDB Administrator
<gdbadmin@sourceware.org> wrote:
> 1084a1085
>> gdb/python/py-cmd.c:192: gettext: _ markup: All messages should be marked up with _.
> gdb/python/py-cmd.c:192:        error ("%s", msg);
>

There were already a couple of uses of error ("%s", ...) so I figured
it was safe.

OOC, is this why source.c has:

error (("%s"), msg);

?


^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: New ARI warning Wed May 26 01:54:51 UTC 2010
  2010-05-26  4:44 ` Doug Evans
@ 2010-05-26  9:06   ` Pierre Muller
  2010-06-02 23:08     ` Joel Brobecker
  0 siblings, 1 reply; 4+ messages in thread
From: Pierre Muller @ 2010-05-26  9:06 UTC (permalink / raw)
  To: 'Doug Evans', gdb-patches



> -----Message d'origine-----
> De : gdb-patches-owner@sourceware.org [mailto:gdb-patches-
> owner@sourceware.org] De la part de Doug Evans
> Envoyé : Wednesday, May 26, 2010 4:48 AM
> À : gdb-patches@sourceware.org
> Objet : Re: New ARI warning Wed May 26 01:54:51 UTC 2010
> 
> On Tue, May 25, 2010 at 6:54 PM, GDB Administrator
> <gdbadmin@sourceware.org> wrote:
> > 1084a1085
> >> gdb/python/py-cmd.c:192: gettext: _ markup: All messages should be
> marked up with _.
> > gdb/python/py-cmd.c:192:        error ("%s", msg);
> >
> 
> There were already a couple of uses of error ("%s", ...) so I figured
> it was safe.

  Of course, translation of "%s" into another language does make sense!
 
> OOC, is this why source.c has:
> 
> error (("%s"), msg);

  I suspect that the braces around "%s" are exactly here for that reason:
they avoid getting this ARI report.
  Does anyone have another idea of the utility of such a wrapping?

  I could probably try to improve the ARI rule 
so that it does not complain if the string is just "%s",
but I would like to be sure that I am not missing some information here.

Pierre Muller
as ARI maintainer.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: New ARI warning Wed May 26 01:54:51 UTC 2010
  2010-05-26  9:06   ` Pierre Muller
@ 2010-06-02 23:08     ` Joel Brobecker
  0 siblings, 0 replies; 4+ messages in thread
From: Joel Brobecker @ 2010-06-02 23:08 UTC (permalink / raw)
  To: Pierre Muller; +Cc: 'Doug Evans', gdb-patches

> > > gdb/python/py-cmd.c:192:        error ("%s", msg);
> > >
> > 
> > There were already a couple of uses of error ("%s", ...) so I figured
> > it was safe.
> 
>   Of course, translation of "%s" into another language does make sense!
>  
> > OOC, is this why source.c has:
> > 
> > error (("%s"), msg);
> 
>   I suspect that the braces around "%s" are exactly here for that reason:
> they avoid getting this ARI report.
>   Does anyone have another idea of the utility of such a wrapping?
> 
>   I could probably try to improve the ARI rule 
> so that it does not complain if the string is just "%s",
> but I would like to be sure that I am not missing some information here.

I don't think anyone really answered the above. I don't see any issue
either way, and I don't have a preference. ISTM that the simplest would
probably be to use ("%s"), instead of adding an exception for "%s".

-- 
Joel


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-06-02 23:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-05-26  2:47 New ARI warning Wed May 26 01:54:51 UTC 2010 GDB Administrator
2010-05-26  4:44 ` Doug Evans
2010-05-26  9:06   ` Pierre Muller
2010-06-02 23:08     ` Joel Brobecker

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox