mirror of
https://salsa.debian.org/ha-team/libqb
synced 2026-01-06 18:17:48 +00:00
37 lines
1.1 KiB
C
37 lines
1.1 KiB
C
/*
|
|
* Copyright (C) 2010 Red Hat, Inc.
|
|
*
|
|
* Author: Angus Salkeld <asalkeld@redhat.com>
|
|
*
|
|
* libqb is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU Lesser General Public License as published by
|
|
* the Free Software Foundation, either version 2.1 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* libqb is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU Lesser General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public License
|
|
* along with libqb. If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
#ifndef QB_UTIL_INT_H_DEFINED
|
|
#define QB_UTIL_INT_H_DEFINED
|
|
|
|
#include <syslog.h>
|
|
|
|
#define qb_util_log(severity, args...) \
|
|
do { \
|
|
_qb_util_log (__FILE__, __LINE__, severity, ##args); \
|
|
} while(0)
|
|
|
|
void _qb_util_log(const char *file_name,
|
|
int32_t file_line,
|
|
int32_t severity,
|
|
const char *format,
|
|
...) __attribute__ ((format(printf, 4, 5)));
|
|
|
|
#endif /* QB_UTIL_INT_H_DEFINED */
|