From 82d4acfe67218bb7429f6fadc2c8a64847cd1963 Mon Sep 17 00:00:00 2001 From: Yuyeon Oh Date: Fri, 12 Jun 2015 16:38:49 +0900 Subject: [PATCH] pepper: fix variable name Change-Id: I0a4841201a9a3a26a43b936c9f0d0e67a77e5e9b --- pepper/src/utils-log.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pepper/src/utils-log.c b/pepper/src/utils-log.c index 42d433e..d497269 100644 --- a/pepper/src/utils-log.c +++ b/pepper/src/utils-log.c @@ -6,7 +6,7 @@ #include static FILE *pepper_log_file; -static int perpper_log_verbosity = 3; +static int pepper_log_verbosity = 3; static int cached_tm_mday = -1; void __attribute__ ((constructor)) @@ -28,7 +28,8 @@ pepper_print_timestamp(void) if (brokendown_time == NULL) return fprintf(pepper_log_file, "[(NULL)localtime] "); - if (brokendown_time->tm_mday != cached_tm_mday) { + if (brokendown_time->tm_mday != cached_tm_mday) + { strftime(string, sizeof string, "%Y-%m-%d %Z", brokendown_time); fprintf(pepper_log_file, "Date: %s\n", string); @@ -61,7 +62,7 @@ pepper_log(const char* domain, int level, const char *format, ...) int l; va_list argp; - if (level > perpper_log_verbosity || level < 0) + if (level > pepper_log_verbosity || level < 0) return 0; l = pepper_print_timestamp(); -- 2.7.4