浏览代码

- DBG_F_MALLOC warning fixes

Andrei Pelinescu-Onciul 20 年之前
父节点
当前提交
f48afcf2b9
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      mem/f_malloc.c

+ 2 - 2
mem/f_malloc.c

@@ -519,8 +519,8 @@ void fm_status(struct fm_block* qm)
 			if (!FRAG_WAS_USED(f)){
 				unused++;
 #ifdef DBG_F_MALLOC
-				LOG(memlog, "unused fragm.: hash = %3d, fragment %x,"
-							" address %x size %lu, created from %s: %s(%d)\n",
+				LOG(memlog, "unused fragm.: hash = %3d, fragment %p,"
+							" address %p size %lu, created from %s: %s(%ld)\n",
 						    h, f, (char*)f+sizeof(struct fm_frag), f->size,
 							f->file, f->func, f->line);
 #endif