瀏覽代碼

Print image physical location in registration message.

tags/v0.9.3
Michael Brown 18 年之前
父節點
當前提交
5c72d9c4e0
共有 1 個檔案被更改,包括 3 行新增1 行删除
  1. 3
    1
      src/core/image.c

+ 3
- 1
src/core/image.c 查看文件

@@ -58,7 +58,9 @@ int register_image ( struct image *image ) {
58 58
 
59 59
 	/* Add to image list */
60 60
 	list_add_tail ( &image->list, &images );
61
-	DBGC ( image, "IMAGE %p registered as %s\n", image, image->name );
61
+	DBGC ( image, "IMAGE %p at [%lx,%lx) registered as %s\n",
62
+	       image, user_to_phys ( image->data, 0 ),
63
+	       user_to_phys ( image->data, image->len ), image->name );
62 64
 
63 65
 	return 0;
64 66
 }

Loading…
取消
儲存