Changeset 11961


Ignore:
Timestamp:
2008-07-27T17:36:56+02:00 (10 years ago)
Author:
juhosg
Message:

[adm5120] fix a bug in the USB driver debug code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/adm5120/files/drivers/usb/host/adm5120-dbg.c

    r11526 r11961  
    394394static int debug_periodic_open(struct inode *, struct file *); 
    395395static int debug_registers_open(struct inode *, struct file *); 
    396 static int debug_async_open(struct inode *, struct file *); 
    397396static ssize_t debug_output(struct file*, char __user*, size_t, loff_t*); 
    398397static int debug_close(struct inode *, struct file *); 
     
    430429show_list(struct admhcd *ahcd, char *buf, size_t count, struct ed *ed) 
    431430{ 
    432         unsigned                temp, size = count; 
     431        unsigned temp; 
     432        unsigned size = count; 
    433433 
    434434        if (!ed) 
     
    489489                ed = ed->ed_next; 
    490490        } 
     491 
    491492        return count - size; 
    492493} 
     
    504505        ahcd = hcd_to_admhcd(hcd); 
    505506 
    506         /* display control and bulk lists together, for simplicity */ 
    507507        spin_lock_irqsave(&ahcd->lock, flags); 
    508         temp = show_list(ahcd, buf->page, buf->count, ahcd->ed_head); 
     508        temp = show_list(ahcd, buf->page, PAGE_SIZE, ahcd->ed_head); 
    509509        spin_unlock_irqrestore(&ahcd->lock, flags); 
    510510 
Note: See TracChangeset for help on using the changeset viewer.