Move logging related macros rpmlog, adjust includes
This commit is contained in:
parent
95953fe610
commit
89527785bb
|
@ -7,6 +7,7 @@
|
|||
#include "system.h"
|
||||
|
||||
#include <rpmbuild.h>
|
||||
#include <rpmlog.h>
|
||||
#include "debug.h"
|
||||
|
||||
typedef const char * ugstr_t;
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
#include <rpmcli.h> /* XXX rpmcliPackagesTotal */
|
||||
|
||||
#include <rpmmacro.h> /* XXX rpmExpand("%{_dependency_whiteout}" */
|
||||
#include <rpmlog.h>
|
||||
|
||||
#include <rpmdb.h>
|
||||
#include "rpmdb/rpmdb_internal.h" /* XXX response cache needs dbiOpen et al. */
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
#include "system.h"
|
||||
|
||||
#include <rpmlib.h>
|
||||
#include <rpmlog.h>
|
||||
#include <rpmfileutil.h>
|
||||
|
||||
#include <rpmstring.h>
|
||||
|
|
|
@ -8,6 +8,7 @@ const char *__progname;
|
|||
|
||||
#include <rpmcli.h>
|
||||
#include <rpmgi.h>
|
||||
#include <rpmlog.h>
|
||||
|
||||
#include "debug.h"
|
||||
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
|
||||
#include <rpmlib.h>
|
||||
#include <rpmstring.h>
|
||||
#include <rpmlog.h>
|
||||
|
||||
#include <rpmds.h>
|
||||
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
#include "system.h"
|
||||
|
||||
#include <rpmlib.h>
|
||||
#include <rpmlog.h>
|
||||
|
||||
#include "lib/cpio.h" /* XXX CPIO_FOO */
|
||||
#include "lib/fsm.h" /* XXX newFSM() */
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
#include "system.h"
|
||||
|
||||
#include <rpmlib.h>
|
||||
#include <rpmlog.h>
|
||||
#include <rpmmacro.h>
|
||||
#include <rpmfileutil.h>
|
||||
|
||||
|
|
|
@ -6,7 +6,6 @@
|
|||
#include <rpmte.h>
|
||||
|
||||
#include <rpmmacro.h>
|
||||
#include <rpmmessages.h>
|
||||
#include "rpmio/fts.h"
|
||||
#include <popt.h>
|
||||
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
#include <rpmlib.h>
|
||||
|
||||
#include <rpmmacro.h> /* XXX for rpmExpand */
|
||||
#include <rpmlog.h>
|
||||
|
||||
#include "lib/fsm.h"
|
||||
#include "lib/psm.h"
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
#include "system.h"
|
||||
#include <rpmcli.h>
|
||||
#include <rpmts.h>
|
||||
#include <rpmlog.h>
|
||||
|
||||
#include "debug.h"
|
||||
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
#include <rpmts.h>
|
||||
#include <rpmsq.h> /* XXX for _rpmsq_debug */
|
||||
#include <rpmio.h>
|
||||
#include <rpmlog.h>
|
||||
|
||||
#include "debug.h"
|
||||
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
#include "system.h"
|
||||
|
||||
#include <rpmcli.h>
|
||||
#include <rpmlog.h>
|
||||
|
||||
#include "lib/psm.h"
|
||||
#include <rpmfi.h>
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
#include <rpmdb.h>
|
||||
#include <rpmsq.h>
|
||||
#include <rpmlog.h>
|
||||
|
||||
#include "header-py.h"
|
||||
#include "rpmal-py.h"
|
||||
|
|
|
@ -27,6 +27,7 @@
|
|||
#include "system.h"
|
||||
|
||||
#include <rpmlib.h>
|
||||
#include <rpmlog.h>
|
||||
#include <rpmmacro.h>
|
||||
#include <rpmurl.h> /* XXX urlPath proto */
|
||||
#include <rpmfileutil.h> /* rpmioMkpath */
|
||||
|
|
|
@ -16,7 +16,6 @@
|
|||
#include <rpmstring.h>
|
||||
#include <rpmfileutil.h>
|
||||
#include <rpmurl.h>
|
||||
#include <rpmmessages.h>
|
||||
#include <rpmlog.h>
|
||||
|
||||
#ifdef WITH_LUA
|
||||
|
|
|
@ -226,6 +226,19 @@ rpmlogCallback rpmlogSetCallback(rpmlogCallback cb);
|
|||
*/
|
||||
FILE * rpmlogSetFile(FILE * fp);
|
||||
|
||||
#define rpmSetVerbosity(_lvl) \
|
||||
((void)rpmlogSetMask( RPMLOG_UPTO( RPMLOG_PRI(_lvl))))
|
||||
#define rpmIncreaseVerbosity() \
|
||||
((void)rpmlogSetMask(((((unsigned)(rpmlogSetMask(0) & 0xff)) << 1) | 1)))
|
||||
#define rpmDecreaseVerbosity() \
|
||||
((void)rpmlogSetMask((((int)(rpmlogSetMask(0) & 0xff)) >> 1)))
|
||||
#define rpmIsNormal() \
|
||||
(rpmlogSetMask(0) >= RPMLOG_MASK( RPMLOG_NOTICE ))
|
||||
#define rpmIsVerbose() \
|
||||
(rpmlogSetMask(0) >= RPMLOG_MASK( RPMLOG_INFO ))
|
||||
#define rpmIsDebug() \
|
||||
(rpmlogSetMask(0) >= RPMLOG_MASK( RPMLOG_DEBUG ))
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -6,25 +6,10 @@
|
|||
* @todo Eliminate from API.
|
||||
*/
|
||||
|
||||
#include <rpmlog.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#define rpmSetVerbosity(_lvl) \
|
||||
((void)rpmlogSetMask( RPMLOG_UPTO( RPMLOG_PRI(_lvl))))
|
||||
#define rpmIncreaseVerbosity() \
|
||||
((void)rpmlogSetMask(((((unsigned)(rpmlogSetMask(0) & 0xff)) << 1) | 1)))
|
||||
#define rpmDecreaseVerbosity() \
|
||||
((void)rpmlogSetMask((((int)(rpmlogSetMask(0) & 0xff)) >> 1)))
|
||||
#define rpmIsNormal() \
|
||||
(rpmlogSetMask(0) >= RPMLOG_MASK( RPMLOG_NOTICE ))
|
||||
#define rpmIsVerbose() \
|
||||
(rpmlogSetMask(0) >= RPMLOG_MASK( RPMLOG_INFO ))
|
||||
#define rpmIsDebug() \
|
||||
(rpmlogSetMask(0) >= RPMLOG_MASK( RPMLOG_DEBUG ))
|
||||
|
||||
/* LCL: ??? */
|
||||
typedef const void * fnpyKey;
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
#include "rpmio/rpmio_internal.h"
|
||||
#include <rpmmacro.h>
|
||||
#include <rpmmessages.h>
|
||||
#include <rpmlog.h>
|
||||
#include <popt.h>
|
||||
|
||||
#include "debug.h"
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
#include "rpmio/rpmio_internal.h"
|
||||
#include <rpmmacro.h>
|
||||
#include <rpmmessages.h>
|
||||
#include <rpmlog.h>
|
||||
#include <popt.h>
|
||||
|
||||
#include "debug.h"
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
#include "rpmio/rpmio_internal.h"
|
||||
#include <rpmmacro.h>
|
||||
#include <rpmmessages.h>
|
||||
#include <rpmlog.h>
|
||||
#include <popt.h>
|
||||
|
||||
#include "debug.h"
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
#include "rpmio/rpmio_internal.h"
|
||||
#include <rpmmacro.h>
|
||||
#include <rpmmessages.h>
|
||||
#include <rpmlog.h>
|
||||
#include <popt.h>
|
||||
|
||||
#include "debug.h"
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
#include "rpmio/rpmio_internal.h"
|
||||
#include <rpmmacro.h>
|
||||
#include <rpmmessages.h>
|
||||
#include <rpmlog.h>
|
||||
#include <popt.h>
|
||||
|
||||
#include "debug.h"
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
#include "rpmio/rpmio_internal.h"
|
||||
#include <rpmmacro.h>
|
||||
#include <rpmmessages.h>
|
||||
#include <rpmlog.h>
|
||||
#include <popt.h>
|
||||
|
||||
#include "debug.h"
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
#include <netinet/in.h>
|
||||
|
||||
#include <rpmmacro.h>
|
||||
#include <rpmmessages.h>
|
||||
#include <rpmlog.h>
|
||||
#include <rpmurl.h>
|
||||
#include <rpmio.h>
|
||||
|
||||
|
|
1
rpmqv.c
1
rpmqv.c
|
@ -13,6 +13,7 @@ const char *__progname;
|
|||
|
||||
#include <rpmcli.h>
|
||||
#include <rpmbuild.h>
|
||||
#include <rpmlog.h>
|
||||
|
||||
#include <rpmdb.h>
|
||||
#include "rpmdb/rpmdb_internal.h" /* XXX for freeing dbiTags */
|
||||
|
|
|
@ -9,6 +9,7 @@ const char *__progname;
|
|||
#include "rpmio/fts.h"
|
||||
|
||||
#include <rpmcli.h>
|
||||
#include <rpmlog.h>
|
||||
|
||||
#include <rpmps.h>
|
||||
#include <rpmdb.h>
|
||||
|
|
Loading…
Reference in New Issue