mirror of
git://sourceware.org/git/lvm2.git
synced 2025-07-30 23:41:55 +03:00
Refactoring.
This commit is contained in:
@ -4,7 +4,8 @@
|
||||
* This file is released under the LGPL.
|
||||
*/
|
||||
|
||||
#include "log.h"
|
||||
#include "lib.h"
|
||||
|
||||
#include <stdarg.h>
|
||||
#include <syslog.h>
|
||||
|
||||
@ -22,7 +23,7 @@ static int _ignorelockingfailure = 0;
|
||||
static char _cmd_name[30] = "";
|
||||
static char _msg_prefix[30] = " ";
|
||||
|
||||
void init_log(FILE * fp)
|
||||
void init_log(FILE *fp)
|
||||
{
|
||||
_log = fp;
|
||||
}
|
||||
@ -57,9 +58,9 @@ void init_verbose(int level)
|
||||
|
||||
void init_test(int level)
|
||||
{
|
||||
if (!_test && level)
|
||||
log_print("Test mode: Metadata will NOT be updated.");
|
||||
_test = level;
|
||||
if (_test)
|
||||
log_print("Test mode. Metadata will NOT be updated.");
|
||||
}
|
||||
|
||||
void init_partial(int level)
|
||||
|
@ -28,8 +28,8 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <stdio.h> /* FILE */
|
||||
#include <string.h> /* strerror() */
|
||||
#include <errno.h>
|
||||
|
||||
#define _LOG_DEBUG 7
|
||||
@ -91,8 +91,3 @@ void print_log(int level, const char *file, int line, const char *format, ...)
|
||||
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Local variables:
|
||||
* c-file-style: "linux"
|
||||
* End:
|
||||
*/
|
||||
|
Reference in New Issue
Block a user