Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Evergreen:11.1
sblim-sfcb
0008-enable-hex-trace-mask.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0008-enable-hex-trace-mask.patch of Package sblim-sfcb
From 95cda191df6e023febf55f6f9929998465a40b5b Mon Sep 17 00:00:00 2001 From: =?utf-8?q?Klaus=20K=C3=A4mpf?= <kkaempf@suse.de> Date: Wed, 22 Oct 2008 11:22:18 +0200 Subject: [PATCH] enable hex trace mask Now trace level (-t) can be specified hexdecimal (-t 0x1234) also adds TRACE_SEMAPHORE --- sfcBroker.c | 7 ++++++- trace.h | 45 ++++++++++++++++++++++++--------------------- 2 files changed, 30 insertions(+), 22 deletions(-) diff --git a/sfcBroker.c b/sfcBroker.c index 95e3e18..827eb7b 100644 --- a/sfcBroker.c +++ b/sfcBroker.c @@ -605,8 +605,13 @@ int main(int argc, char *argv[]) if (*optarg == '?') { fprintf(stdout, "--- Traceable Components: Int Hex\n"); for (i = 0; traceIds[i].id; i++) - fprintf(stdout, "--- \t%18s: %d\t0x%05X\n", traceIds[i].id, traceIds[i].code, traceIds[i].code); + fprintf(stdout, "--- \t%18s: %d\t0x%07X\n", traceIds[i].id, traceIds[i].code, traceIds[i].code); exit(0); + } else if (*optarg == 0 && *(optarg+1) == 'x') { + if (sscanf(optarg,"0x%lx",&tmask) != 1) { + fprintf(stderr,"-t argument not proper hex value\n"); + exit(1); + } } else if (isdigit(*optarg)) { char *ep; tmask = strtol(optarg, &ep, 0); diff --git a/trace.h b/trace.h index e72fa88..f892689 100644 --- a/trace.h +++ b/trace.h @@ -123,27 +123,30 @@ int colorTrace; #define MAX_MSG_SIZE 1024 /* max length of trace message */ -#define TRACE_PROVIDERMGR 1 -#define TRACE_PROVIDERDRV 2 -#define TRACE_CIMXMLPROC 4 -#define TRACE_HTTPDAEMON 8 -#define TRACE_UPCALLS 16 -#define TRACE_ENCCALLS 32 -#define TRACE_PROVIDERINSTMGR 64 -#define TRACE_PROVIDERASSOCMGR 128 -#define TRACE_PROVIDERS 256 -#define TRACE_INDPROVIDER 512 -#define TRACE_INTERNALPROVIDER 1024 -#define TRACE_OBJECTIMPL 2048 -#define TRACE_XMLIN 4096 -#define TRACE_XMLOUT 8192 -#define TRACE_SOCKETS 16384 -#define TRACE_MEMORYMGR 32768 -#define TRACE_MSGQUEUE 65536 -#define TRACE_XMLPARSING 131072 -#define TRACE_RESPONSETIMING 262144 -#define TRACE_DBPDAEMON 524288 -#define TRACE_SLP 1048576 +#define TRACE_PROVIDERMGR 1 /* 0x00.0001 */ +#define TRACE_PROVIDERDRV 2 /* 0x00.0002 */ +#define TRACE_CIMXMLPROC 4 /* 0x00.0004 */ +#define TRACE_HTTPDAEMON 8 /* 0x00.0008 */ +#define TRACE_UPCALLS 16 /* 0x00.0010 */ +#define TRACE_ENCCALLS 32 /* 0x00.0020 */ +#define TRACE_PROVIDERINSTMGR 64 /* 0x00.0040 */ +#define TRACE_PROVIDERASSOCMGR 128 /* 0x00.0080 */ +#define TRACE_PROVIDERS 256 /* 0x00.0100 */ +#define TRACE_INDPROVIDER 512 /* 0x00.0200 */ +#define TRACE_INTERNALPROVIDER 1024 /* 0x00.0400 */ +#define TRACE_OBJECTIMPL 2048 /* 0x00.0800 */ +#define TRACE_XMLIN 4096 /* 0x00.1000 */ +#define TRACE_XMLOUT 8192 /* 0x00.2000 */ +#define TRACE_SOCKETS 16384 /* 0x00.4000 */ +#define TRACE_MEMORYMGR 32768 /* 0x00.8000 */ +#define TRACE_MSGQUEUE 65536 /* 0x01.0000 */ +#define TRACE_XMLPARSING 131072 /* 0x02.0000 */ +#define TRACE_RESPONSETIMING 262144 /* 0x04.0000 */ +#define TRACE_DBPDAEMON 524288 /* 0x08.0000 */ +#define TRACE_SLP 1048576 /* 0x10.0000 */ +#define TRACE_SEMAPHORE 2097152 /* 0x20.0000 */ +/* 4194304 0x40.000 */ +/* 8388608 0x80.000 */ typedef void sigHandler(int); -- 1.6.0.2
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor