From 0b47b6b57bd8c915c336e09e21e8a4fe01e9dbad Mon Sep 17 00:00:00 2001 From: Ming Lei Date: Thu, 18 Sep 2008 23:06:38 +0800 Subject: [PATCH] --- yaml --- r: 115765 b: refs/heads/master c: 3c4bb71f96c69ef3c81fda108c96b633a2000de2 h: refs/heads/master i: 115763: 8d412afe306673a3fad0c21109051b9a59d63821 v: v3 --- [refs] | 2 +- trunk/drivers/usb/host/ehci-dbg.c | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/[refs] b/[refs] index d8411945967f..7fc3812b7b96 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 3c04e20ea95f9a8555456000e0ff340bdc46dea8 +refs/heads/master: 3c4bb71f96c69ef3c81fda108c96b633a2000de2 diff --git a/trunk/drivers/usb/host/ehci-dbg.c b/trunk/drivers/usb/host/ehci-dbg.c index 9534ff3f5e7b..5d57773e730e 100644 --- a/trunk/drivers/usb/host/ehci-dbg.c +++ b/trunk/drivers/usb/host/ehci-dbg.c @@ -569,14 +569,16 @@ static ssize_t fill_periodic_buffer(struct debug_buffer *buf) for (temp = 0; temp < seen_count; temp++) { if (seen [temp].ptr != p.ptr) continue; - if (p.qh->qh_next.ptr) + if (p.qh->qh_next.ptr) { temp = scnprintf (next, size, " ..."); - p.ptr = NULL; + size -= temp; + next += temp; + } break; } /* show more info the first time around */ - if (temp == seen_count && p.ptr) { + if (temp == seen_count) { u32 scratch = hc32_to_cpup(ehci, &p.qh->hw_info1); struct ehci_qtd *qtd;