diff options
-rw-r--r-- | src/unicode.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/unicode.c b/src/unicode.c index f0db1f4..600bc94 100644 --- a/src/unicode.c +++ b/src/unicode.c @@ -69,10 +69,11 @@ #include <inttypes.h> #include <stdlib.h> #include <string.h> - #include "log.h" #include "unicode.h" +#define LOG_SUBSYSTEM "unicode" + #define KMSCON_UCS4_MAXLEN 10 #define KMSCON_UCS4_MAX 0x7fffffffUL #define KMSCON_UCS4_INVALID 0xfffd @@ -190,7 +191,7 @@ void kmscon_symbol_table_unref(struct kmscon_symbol_table *st) kmscon_symbol_t kmscon_symbol_make(uint32_t ucs4) { if (ucs4 > KMSCON_UCS4_MAX) { - log_warn("unicode: invalid ucs4 character\n"); + log_warn("invalid ucs4 character"); return 0; } else { return ucs4; @@ -208,7 +209,7 @@ kmscon_symbol_t kmscon_symbol_append(struct kmscon_symbol_table *st, return sym; if (ucs4 > KMSCON_UCS4_MAX) { - log_warn("unicode: invalid ucs4 character\n"); + log_warn("invalid ucs4 character"); return sym; } @@ -224,7 +225,7 @@ kmscon_symbol_t kmscon_symbol_append(struct kmscon_symbol_table *st, if (nsym) return nsym; - log_debug("unicode: adding new composed symbol\n"); + log_debug("adding new composed symbol"); nval = malloc(sizeof(uint32_t) * s); if (!nval) |