[GRASS-dev] Re: [GRASS-SVN] r42980 - grass/trunk/vector/v.db.connect

Martin Landa landa.martin at gmail.com
Tue Aug 3 06:32:44 EDT 2010


Hi,

2010/8/3  <svn_grass at osgeo.org>:
>                        else {
> -                           fprintf(stdout,
> -                                   _("layer <%d> table <%s> in database <%s> through driver "
> -                                    "<%s> with key <%s>\n"), fi->number,
> -                                   fi->table, fi->database, fi->driver, fi->key);
> +                           G_message(_("layer <%d>"), fi->number);
>                        }
> +                       G_message(_("table <%s>"), fi->table);
> +                       G_message(_("in database <%s>"), fi->database);;
> +                       G_message(_("through driver <%s>"), fi->driver);
> +                       G_message(_("with key <%s>"), fi->key);

here I would suggest to use fprintf() instead of G_message(). It's
module's output, not messages. E.g. `v.db.connect vzorky -p --q`
prints nothing.

Martin

-- 
Martin Landa <landa.martin gmail.com> * http://gama.fsv.cvut.cz/~landa


More information about the grass-dev mailing list