瀏覽代碼

Missing header field added

Jan Janak 21 年之前
父節點
當前提交
8bfbc23cf2
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      db/db.c

+ 2 - 1
db/db.c

@@ -31,6 +31,7 @@
 #include "../sr_module.h"
 #include "../mem/mem.h"
 #include "../str.h"
+#include "../ut.h"
 
 db_func_t dbf;
 
@@ -129,7 +130,7 @@ int table_version(db_con_t* connection, const str* table)
 	}
 
 	if (RES_ROW_N(res) == 0) {
-		DBG("table_version(): No row for table %s found\n", table->len, ZSW(table->s));
+		DBG("table_version(): No row for table %.*s found\n", table->len, ZSW(table->s));
 		return 0;
 	}