예제 #1
0
파일: parsehelp.c 프로젝트: guillemj/dpkg
void
parse_error(struct parsedb_state *ps, const char *fmt, ...)
{
  va_list args;

  va_start(args, fmt);
  ohshitv(parse_error_msg(ps, fmt), args);
}
예제 #2
0
void forcibleerr(int forceflag, const char *fmt, ...) {
  va_list al;
  va_start(al,fmt);
  if (forceflag) {
    fputs(_("dpkg - warning, overriding problem because --force enabled:\n "),stderr);
    vfprintf(stderr,fmt,al);
    fputc('\n',stderr);
  } else {
    ohshitv(fmt,al);
  }
  va_end(al);
}
예제 #3
0
파일: errors.c 프로젝트: smcv/dpkg
void forcibleerr(int forceflag, const char *fmt, ...) {
  va_list args;

  va_start(args, fmt);
  if (forceflag) {
    warning(_("overriding problem because --force enabled:"));
    warningv(fmt, args);
  } else {
    ohshitv(fmt, args);
  }
  va_end(args);
}
예제 #4
0
파일: parsehelp.c 프로젝트: Minipig/dpkg
void
parse_error(struct parsedb_state *ps,
            const struct pkginfo *pigp, const char *fmt, ...)
{
  va_list args;
  char buf1[768], buf2[1000], *q;

  parse_error_msg(ps, pigp, _("parse error"), buf1);
  q = str_escape_fmt(buf2, buf1, sizeof(buf2));
  strcat(q,fmt);

  va_start(args, fmt);
  ohshitv(buf2, args);
}