]> git.sur5r.net Git - i3/i3/blobdiff - src/load_layout.c
use I3__FILE__ for DLOG, leave __FILE__ as is
[i3/i3] / src / load_layout.c
index 54735d915b456acaf117744ac9e2001d15dc583f..795fb6d8ce516e86ecb9e40df40751bdae09b4a8 100644 (file)
@@ -1,3 +1,5 @@
+#undef I3__FILE__
+#define I3__FILE__ "load_layout.c"
 /*
  * vim:ts=4:sw=4:expandtab
  *
@@ -139,7 +141,7 @@ static int json_string(void *ctx, const unsigned char *val, size_t len) {
 #else
 static int json_string(void *ctx, const unsigned char *val, unsigned int len) {
 #endif
-    LOG("string: %.*s for key %s\n", len, val, last_key);
+    LOG("string: %.*s for key %s\n", (int)len, val, last_key);
     if (parsing_swallows) {
         /* TODO: the other swallowing keys */
         if (strcasecmp(last_key, "class") == 0) {