Add definitions of MXS_MODULE_NAME to all modules

All modules now declare a name for the module. This is name is added as a
prefix to all messages logged by a module. The prefix should help
determine which part of the system logs a message.
This commit is contained in:
Markus Mäkelä
2017-01-16 11:16:05 +02:00
parent d054bc9b04
commit 2cabcea211
66 changed files with 154 additions and 32 deletions

View File

@ -59,6 +59,9 @@
*
* @endverbatim
*/
#include "blr.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@ -71,7 +74,6 @@
#include <maxscale/utils.h>
#include <maxscale/secrets.h>
#include <maxscale/spinlock.h>
#include "blr.h"
#include <maxscale/dcb.h>
#include <maxscale/spinlock.h>
#include <maxscale/housekeeper.h>

View File

@ -43,6 +43,8 @@
* @endverbatim
*/
#define MXS_MODULE_NAME "binlogrouter"
#include <maxscale/cdefs.h>
#include <maxscale/dcb.h>
#include <maxscale/buffer.h>

View File

@ -31,6 +31,9 @@
*
* @endverbatim
*/
#include "blr.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@ -39,7 +42,6 @@
#include <maxscale/router.h>
#include <maxscale/atomic.h>
#include <maxscale/spinlock.h>
#include "blr.h"
#include <maxscale/dcb.h>
#include <maxscale/spinlock.h>

View File

@ -48,6 +48,9 @@
*
* @endverbatim
*/
#include "blr.h"
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
@ -62,7 +65,6 @@
#include <maxscale/router.h>
#include <maxscale/atomic.h>
#include <maxscale/spinlock.h>
#include "blr.h"
#include <maxscale/dcb.h>
#include <maxscale/spinlock.h>
#include <maxscale/gwdirs.h>

View File

@ -55,6 +55,9 @@
*
* @endverbatim
*/
#include "blr.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@ -63,7 +66,6 @@
#include <maxscale/router.h>
#include <maxscale/atomic.h>
#include <maxscale/session.h>
#include "blr.h"
#include <maxscale/dcb.h>
#include <maxscale/spinlock.h>
#include <maxscale/housekeeper.h>

View File

@ -68,6 +68,8 @@
* @endverbatim
*/
#include "blr.h"
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
@ -78,7 +80,6 @@
#include <maxscale/router.h>
#include <maxscale/atomic.h>
#include <maxscale/spinlock.h>
#include "blr.h"
#include <maxscale/dcb.h>
#include <maxscale/spinlock.h>
#include <maxscale/housekeeper.h>

View File

@ -40,6 +40,8 @@
* @endverbatim
*/
#include "blr.h"
#include <getopt.h>
#include <stdio.h>
#include <stdlib.h>
@ -48,7 +50,6 @@
#include <maxscale/alloc.h>
#include <maxscale/log_manager.h>
#include "blr.h"
static void printVersion(const char *progname);

View File

@ -21,6 +21,9 @@
*
* @endverbatim
*/
#include "../blr.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@ -30,7 +33,6 @@
#include <maxscale/router.h>
#include <maxscale/atomic.h>
#include <maxscale/spinlock.h>
#include "../blr.h"
#include <maxscale/dcb.h>
#include <maxscale/spinlock.h>
#include <maxscale/housekeeper.h>