Rename skygw_debug.h to debug.h

Also remove unneded includes in debug.h
This commit is contained in:
Johan Wikman 2016-10-14 13:44:40 +03:00
parent c03b8079fd
commit 0800bf4a59
28 changed files with 33 additions and 36 deletions

View File

@ -14,7 +14,7 @@
#include "maxavro.h"
#include <maxscale/skygw_utils.h>
#include <string.h>
#include <maxscale/skygw_debug.h>
#include <maxscale/debug.h>
#include <maxscale/log_manager.h>
#include <errno.h>

View File

@ -14,7 +14,7 @@
#include "maxavro.h"
#include <jansson.h>
#include <string.h>
#include <maxscale/skygw_debug.h>
#include <maxscale/debug.h>
#include <maxscale/log_manager.h>
static const MAXAVRO_SCHEMA_FIELD types[MAXAVRO_TYPE_MAX] =

View File

@ -23,7 +23,7 @@
#include <errno.h>
#include <limits.h>
#include <getopt.h>
#include <maxscale/skygw_debug.h>
#include <maxscale/debug.h>
static int verbose = 0;
static uint64_t seekto = 0;

View File

@ -46,7 +46,7 @@
#include <maxscale/cdefs.h>
#include <string.h>
#include <maxscale/skygw_debug.h>
#include <maxscale/debug.h>
#include <maxscale/hint.h>
#include <maxscale/spinlock.h>
#include <stdint.h>

View File

@ -1,6 +1,6 @@
#pragma once
#ifndef _MAXSCALE_SKYGW_DEBUG_H
#define _MAXSCALE_SKYGW_DEBUG_H
#ifndef _MAXSCALE_DEBUG_H
#define _MAXSCALE_DEBUG_H
/*
* Copyright (c) 2016 MariaDB Corporation Ab
*
@ -15,15 +15,12 @@
*/
#include <maxscale/cdefs.h>
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include <limits.h>
#define __USE_UNIX98 1
#include <stdio.h>
#include <stdlib.h>
#include <pthread.h>
#include <unistd.h>
#include <stdbool.h>
#include <maxscale/log_manager.h>
MXS_BEGIN_DECLS
@ -572,4 +569,4 @@ static bool conn_open[10240];
MXS_END_DECLS
#endif /* SKYGW_DEBUG_H */
#endif

View File

@ -30,7 +30,7 @@
* @endverbatim
*/
#include <maxscale/cdefs.h>
#include <maxscale/skygw_debug.h>
#include <maxscale/debug.h>
#include <maxscale/spinlock.h>
MXS_BEGIN_DECLS

View File

@ -27,7 +27,7 @@
*/
#include <maxscale/cdefs.h>
#include <maxscale/skygw_debug.h>
#include <maxscale/debug.h>
MXS_BEGIN_DECLS

View File

@ -29,7 +29,7 @@
#include <maxscale/cdefs.h>
#include <maxscale/spinlock.h>
#include <maxscale/skygw_debug.h>
#include <maxscale/debug.h>
MXS_BEGIN_DECLS

View File

@ -37,7 +37,7 @@
#include <maxscale/dcb.h>
#include <maxscale/modinfo.h>
#include <maxscale/resultset.h>
#include <maxscale/skygw_debug.h>
#include <maxscale/debug.h>
MXS_BEGIN_DECLS

View File

@ -34,7 +34,7 @@ MXS_BEGIN_DECLS
#define FSYNCLIMIT 10
#include <maxscale/skygw_types.h>
#include <maxscale/skygw_debug.h>
#include <maxscale/debug.h>
#define DISKWRITE_LATENCY (5*MSEC_USEC)

View File

@ -26,7 +26,7 @@
*/
#include <maxscale/cdefs.h>
#include <maxscale/skygw_debug.h>
#include <maxscale/debug.h>
MXS_BEGIN_DECLS

View File

@ -56,7 +56,7 @@
#include <item_func.h>
#include <maxscale/skygw_types.h>
#include <maxscale/skygw_debug.h>
#include <maxscale/debug.h>
#include <maxscale/log_manager.h>
#include <maxscale/query_classifier.h>
#include <maxscale/protocol/mysql.h>

View File

@ -5,7 +5,7 @@
#include "builtin_functions.h"
#include <stdlib.h>
#include <string.h>
#include <maxscale/skygw_debug.h>
#include <maxscale/debug.h>
static struct
{

View File

@ -42,7 +42,7 @@
#include <stdlib.h>
#include <maxscale/alloc.h>
#include <maxscale/atomic.h>
#include <maxscale/skygw_debug.h>
#include <maxscale/debug.h>
#include <maxscale/skygw_utils.h>
#include <maxscale/spinlock.h>
#include <maxscale/hint.h>

View File

@ -28,7 +28,7 @@
#include <maxscale/hashtable.h>
#include <maxscale/mlist.h>
#include <maxscale/spinlock.h>
#include <maxscale/skygw_debug.h>
#include <maxscale/debug.h>
#include <maxscale/skygw_types.h>
#include <maxscale/skygw_utils.h>
#include <maxscale/alloc.h>

View File

@ -20,7 +20,7 @@
#include <stdlib.h>
#include <maxscale/log_manager.h>
#include <string.h>
#include <maxscale/skygw_debug.h>
#include <maxscale/debug.h>
#include <maxscale/users.h>
#include <maxscale/dbusers.h>
#include <strings.h>

View File

@ -25,7 +25,7 @@
#include <stdbool.h>
#include <maxscale/alloc.h>
#include <maxscale/log_manager.h>
#include <maxscale/skygw_debug.h>
#include <maxscale/debug.h>
#include <maxscale/config.h>
/**

View File

@ -33,7 +33,7 @@
#include <maxscale/spinlock.h>
#include <maxscale/log_manager.h>
#include <maxscale/hk_heartbeat.h>
#include <maxscale/skygw_debug.h>
#include <maxscale/debug.h>
#if defined(SS_DEBUG)
int debug_check_fail = 0;

View File

@ -23,7 +23,7 @@
#include <time.h>
#include <stddef.h>
#include <regex.h>
#include <maxscale/skygw_debug.h>
#include <maxscale/debug.h>
#include <maxscale/skygw_types.h>
#include <sys/time.h>
#include <maxscale/skygw_utils.h>

View File

@ -26,7 +26,7 @@
#include <maxscale/spinlock.h>
#include <maxscale/atomic.h>
#include <time.h>
#include <maxscale/skygw_debug.h>
#include <maxscale/debug.h>
/**
* Initialise a spinlock.

View File

@ -35,7 +35,7 @@
#include <maxscale/gwbitmask.h>
#include <maxscale/skygw_debug.h>
#include <maxscale/debug.h>
/**
* test1 Create a bitmap and mess around with it

View File

@ -35,7 +35,7 @@
#include <string.h>
#include <maxscale/alloc.h>
#include <maxscale/pcre2.h>
#include <maxscale/skygw_debug.h>
#include <maxscale/debug.h>
#define test_assert(a, b) if(!(a)){fprintf(stderr, b);return 1;}

View File

@ -18,7 +18,7 @@
#include <stdint.h>
#include <maxscale/buffer.h>
#include <maxscale/protocol/mysql.h>
#include <maxscale/skygw_debug.h>
#include <maxscale/debug.h>
MXS_BEGIN_DECLS

View File

@ -17,7 +17,7 @@
#if !defined(SS_DEBUG)
#define SS_DEBUG
#endif
#include <maxscale/skygw_debug.h>
#include <maxscale/debug.h>
struct test_case
{

View File

@ -38,7 +38,7 @@
#include <maxscale/skygw_types.h>
#include <maxscale/spinlock.h>
#include <maxscale/skygw_debug.h>
#include <maxscale/debug.h>
#include <maxscale/log_manager.h>
#include <string.h>
#include <maxscale/filter.h>

View File

@ -20,7 +20,7 @@
#include <maxscale/monitor.h>
#include <mysqld_error.h>
#include <maxscale/alloc.h>
#include <maxscale/skygw_debug.h>
#include <maxscale/debug.h>
static char *version_str = (char*)"V1.0.0";

View File

@ -33,7 +33,7 @@
*/
#include "avrorouter.h"
#include <maxscale/skygw_debug.h>
#include <maxscale/debug.h>
#include <glob.h>
void* safe_key_free(void *data);

View File

@ -28,7 +28,7 @@
#include <sys/stat.h>
#include <errno.h>
#include <maxscale/skygw_utils.h>
#include <maxscale/skygw_debug.h>
#include <maxscale/debug.h>
#include <string.h>
#include <strings.h>
#include <maxscale/alloc.h>