projects
/
libam7xxx.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
0a0245d
)
Add info about transfer direction in debug messages, add newline
author
Antonio Ospite <ospite@studenti.unina.it>
Wed, 25 Jan 2012 11:24:53 +0000
(12:24 +0100)
committer
Antonio Ospite <ospite@studenti.unina.it>
Wed, 25 Jan 2012 14:57:30 +0000
(15:57 +0100)
src/am7xxx.c
patch
|
blob
|
history
diff --git
a/src/am7xxx.c
b/src/am7xxx.c
index
7bd4a2c
..
90dcc8c
100644
(file)
--- a/
src/am7xxx.c
+++ b/
src/am7xxx.c
@@
-103,6
+103,7
@@
static int send_data(am7xxx_device dev, uint8_t *buffer, unsigned int len)
int transferred;
#if DEBUG
int transferred;
#if DEBUG
+ printf("\nsending -->\n");
dump_buffer(buffer, len);
printf("\n");
#endif
dump_buffer(buffer, len);
printf("\n");
#endif
@@
-138,6
+139,7
@@
static int send_header(am7xxx_device dev, struct am7xxx_header *h)
int ret;
#if DEBUG
int ret;
#if DEBUG
+ printf("\n");
dump_header(h);
printf("\n");
#endif
dump_header(h);
printf("\n");
#endif