[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svn commit: r1051566 - /subversion/trunk/subversion/libsvn_ra_local/ra_plugin.c

From: Daniel Shahaf <danielsh_at_apache.org>
Date: Wed, 22 Dec 2010 15:10:52 +0200

Julian Foad wrote on Wed, Dec 22, 2010 at 12:34:05 +0000:
> danielsh_at_apache.org wrote:
> > When ignoring a warning, do so noisily if in maintainer mode.
> >
> > * subversion/libsvn_ra_local/ra_plugin.c
> > (ignore_warnings):
> > In maintainer mode, output notice that an error is being ignored.
> > Update the comment, which was outdated by r1051559.
>
> subversion/libsvn_ra_local/ra_plugin.c: In function ‘ignore_warnings’:
> subversion/libsvn_ra_local/ra_plugin.c:437: warning: format ‘%ld’
> expects type ‘long int’, but argument 2 has type ‘int’
>

Thanks, r1051886.

(There is no APR_STATUS_T_FMT, but our maintainer-mode printing uses %d,
so I went with that.)

> - Julian
>
>
> > Modified: subversion/trunk/subversion/libsvn_ra_local/ra_plugin.c
> > URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_ra_local/ra_plugin.c?rev=1051566&r1=1051565&r2=1051566&view=diff
> > ==============================================================================
> > --- subversion/trunk/subversion/libsvn_ra_local/ra_plugin.c (original)
> > +++ subversion/trunk/subversion/libsvn_ra_local/ra_plugin.c Tue Dec 21 17:18:53 2010
> > @@ -416,7 +416,7 @@ svn_ra_local__get_schemes(apr_pool_t *po
> >
> > /* Do nothing.
> > *
> > - * Why is this acceptable? As of now, FS warnings are used for only
> > + * Why is this acceptable? FS warnings used to be used for only
> > * two things: failures to close BDB repositories and failures to
> > * interact with memcached in FSFS (new in 1.6). In 1.5 and earlier,
> > * we did not call svn_fs_set_warning_func in ra_local, which means
> > @@ -433,6 +433,9 @@ static void
> > ignore_warnings(void *baton,
> > svn_error_t *err)
> > {
> > +#ifdef SVN_DEBUG
> > + SVN_DBG(("Ignoring FS warning %ld\n", err ? err->apr_err : 0));
> > +#endif
> > return;
> > }
>
>
Received on 2010-12-22 14:13:51 CET

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.