Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 328040
b: refs/heads/master
c: 56b9f30
h: refs/heads/master
v: v3
  • Loading branch information
Randy Dunlap authored and Marc Kleine-Budde committed Sep 21, 2012
1 parent 99da5a7 commit 881c68e
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 006cd138fc8813220cb4b6450bd9b44f3401bb89
refs/heads/master: 56b9f30198875f199d00554c5e5001f63c5fc8ad
8 changes: 4 additions & 4 deletions trunk/drivers/net/can/usb/peak_usb/pcan_usb_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ static struct peak_usb_adapter *peak_usb_adapters_list[] = {
* dump memory
*/
#define DUMP_WIDTH 16
void dump_mem(char *prompt, void *p, int l)
void pcan_dump_mem(char *prompt, void *p, int l)
{
pr_info("%s dumping %s (%d bytes):\n",
PCAN_USB_DRIVER_NAME, prompt ? prompt : "memory", l);
Expand Down Expand Up @@ -203,9 +203,9 @@ static void peak_usb_read_bulk_callback(struct urb *urb)
if (dev->state & PCAN_USB_STATE_STARTED) {
err = dev->adapter->dev_decode_buf(dev, urb);
if (err)
dump_mem("received usb message",
urb->transfer_buffer,
urb->transfer_buffer_length);
pcan_dump_mem("received usb message",
urb->transfer_buffer,
urb->transfer_buffer_length);
}
}

Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/net/can/usb/peak_usb/pcan_usb_core.h
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ struct peak_usb_device {
struct peak_usb_device *next_siblings;
};

void dump_mem(char *prompt, void *p, int l);
void pcan_dump_mem(char *prompt, void *p, int l);

/* common timestamp management */
void peak_usb_init_time_ref(struct peak_time_ref *time_ref,
Expand Down
8 changes: 4 additions & 4 deletions trunk/drivers/net/can/usb/peak_usb/pcan_usb_pro.c
Original file line number Diff line number Diff line change
Expand Up @@ -292,8 +292,8 @@ static int pcan_usb_pro_wait_rsp(struct peak_usb_device *dev,
if (!rec_len) {
netdev_err(dev->netdev,
"got unprocessed record in msg\n");
dump_mem("rcvd rsp msg", pum->u.rec_buffer,
actual_length);
pcan_dump_mem("rcvd rsp msg", pum->u.rec_buffer,
actual_length);
break;
}

Expand Down Expand Up @@ -756,8 +756,8 @@ static int pcan_usb_pro_decode_buf(struct peak_usb_device *dev, struct urb *urb)

fail:
if (err)
dump_mem("received msg",
urb->transfer_buffer, urb->actual_length);
pcan_dump_mem("received msg",
urb->transfer_buffer, urb->actual_length);

return err;
}
Expand Down

0 comments on commit 881c68e

Please sign in to comment.