pjdlog.c (a4bf5fb987611aeb78c422312b63b185e39982d7) pjdlog.c (e3031161eb793252cee9eff1da883e6baeb6567f)
1/*-
2 * Copyright (c) 2009-2010 The FreeBSD Foundation
3 * All rights reserved.
4 *
5 * This software was developed by Pawel Jakub Dawidek under sponsorship from
6 * the FreeBSD Foundation.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 311 unchanged lines hidden (view full) ---

320 * Log error, errno and exit.
321 */
322void
323pjdlogv_exit(int exitcode, const char *fmt, va_list ap)
324{
325
326 pjdlogv_errno(LOG_ERR, fmt, ap);
327 exit(exitcode);
1/*-
2 * Copyright (c) 2009-2010 The FreeBSD Foundation
3 * All rights reserved.
4 *
5 * This software was developed by Pawel Jakub Dawidek under sponsorship from
6 * the FreeBSD Foundation.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 311 unchanged lines hidden (view full) ---

320 * Log error, errno and exit.
321 */
322void
323pjdlogv_exit(int exitcode, const char *fmt, va_list ap)
324{
325
326 pjdlogv_errno(LOG_ERR, fmt, ap);
327 exit(exitcode);
328 /* NOTREACHED */
328}
329
330/*
331 * Log error, errno and exit.
332 */
333void
334pjdlog_exit(int exitcode, const char *fmt, ...)
335{

--- 9 unchanged lines hidden (view full) ---

345 * Log error and exit.
346 */
347void
348pjdlogv_exitx(int exitcode, const char *fmt, va_list ap)
349{
350
351 pjdlogv(LOG_ERR, fmt, ap);
352 exit(exitcode);
329}
330
331/*
332 * Log error, errno and exit.
333 */
334void
335pjdlog_exit(int exitcode, const char *fmt, ...)
336{

--- 9 unchanged lines hidden (view full) ---

346 * Log error and exit.
347 */
348void
349pjdlogv_exitx(int exitcode, const char *fmt, va_list ap)
350{
351
352 pjdlogv(LOG_ERR, fmt, ap);
353 exit(exitcode);
354 /* NOTREACHED */
353}
354
355/*
356 * Log error and exit.
357 */
358void
359pjdlog_exitx(int exitcode, const char *fmt, ...)
360{
361 va_list ap;
362
363 va_start(ap, fmt);
364 pjdlogv_exitx(exitcode, fmt, ap);
365 /* NOTREACHED */
366 va_end(ap);
367}
355}
356
357/*
358 * Log error and exit.
359 */
360void
361pjdlog_exitx(int exitcode, const char *fmt, ...)
362{
363 va_list ap;
364
365 va_start(ap, fmt);
366 pjdlogv_exitx(exitcode, fmt, ap);
367 /* NOTREACHED */
368 va_end(ap);
369}