瀏覽代碼

Minor debug message improvement.

tags/v0.9.3
Michael Brown 17 年之前
父節點
當前提交
387a1a8556
共有 1 個文件被更改,包括 3 次插入2 次删除
  1. 3
    2
      src/net/netdevice.c

+ 3
- 2
src/net/netdevice.c 查看文件

@@ -476,8 +476,9 @@ static void net_step ( struct process *process __unused ) {
476 476
 		 * NIC faster than they arrive.
477 477
 		 */
478 478
 		if ( ( iobuf = netdev_rx_dequeue ( netdev ) ) ) {
479
-			DBGC ( netdev, "NETDEV %p processing %p\n",
480
-			       netdev, iobuf );
479
+			DBGC ( netdev, "NETDEV %p processing %p (%p+%zx)\n",
480
+			       netdev, iobuf, iobuf->data,
481
+			       iob_len ( iobuf ) );
481 482
 			netdev->ll_protocol->rx ( iobuf, netdev );
482 483
 		}
483 484
 	}

Loading…
取消
儲存