FreeBSD/contrib/subversion/subversion/libsvn_repos/dump.c
/* Send a notification of type #svn_repos_notify_warning, subtype WARNING,
   with message WARNING_FMT formatted with the remaining variable arguments.
   Send it by calling NOTIFY_FUNC (if not null) with NOTIFY_BATON.
 */
Send a notification of type #svn_repos_notify_warning, subtype WARNING,
with message WARNING_FMT formatted with the remaining variable arguments.
Send it by calling NOTIFY_FUNC (if not null) with NOTIFY_BATON.
Send a notification of type #svn_repos_notify_warning subtype WARNING with message WARNING_FMT formatted with the remaining variable arguments . Send it by calling NOTIFY_FUNC ( if not null ) with NOTIFY_BATON .
__attribute__((format(printf, 5, 6)))
static void
notify_warning(apr_pool_t *scratch_pool,
               svn_repos_notify_func_t notify_func,
               void *notify_baton,
               svn_repos_notify_warning_t warning,
               const char *warning_fmt,
               ...)
{
  va_list va;
  svn_repos_notify_t *notify;
  if (notify_func == NULL)
    return;
  notify = svn_repos_notify_create(svn_repos_notify_warning, scratch_pool);
  notify->warning = warning;
  va_start(va, warning_fmt);
  notify->warning_str = apr_pvsprintf(scratch_pool, warning_fmt, va);
  va_end(va);
  notify_func(notify_baton, notify, scratch_pool);
}
__attribute__ ( ( format ( printf , 5 , 6 ) ) ) static void notify_warning ( apr_pool_t * scratch_pool , svn_repos_notify_func_t notify_func , void * notify_baton , svn_repos_notify_warning_t warning , const char * warning_fmt , ... ) { va_list va ; svn_repos_notify_t * notify ; if ( notify_func == NULL ) return ; notify = svn_repos_notify_create ( svn_repos_notify_warning , scratch_pool ) ; notify -> warning = warning ; va_start ( va , warning_fmt ) ; notify -> warning_str = apr_pvsprintf ( scratch_pool , warning_fmt , va ) ; va_end ( va ) ; notify_func ( notify_baton , notify , scratch_pool ) ; }
Send a notification of type #svn_repos_notify_warning, subtype WARNING,
with message WARNING_FMT formatted with the remaining variable arguments.
Send a notification of type #svn_repos_notify_warning subtype WARNING with message WARNING_FMT formatted with the remaining variable arguments .