summaryrefslogtreecommitdiff
path: root/firmware/debug.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/debug.c')
-rw-r--r--firmware/debug.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/firmware/debug.c b/firmware/debug.c
index 977ece3f5d..6a30c6076a 100644
--- a/firmware/debug.c
+++ b/firmware/debug.c
@@ -112,11 +112,11 @@ static char lowhex(int x)
112 return hexchars[x & 0xf]; 112 return hexchars[x & 0xf];
113} 113}
114 114
115static void putpacket (char *buffer) 115static void putpacket (const char *buffer)
116{ 116{
117 register int checksum; 117 register int checksum;
118 118
119 char *src = buffer; 119 const char *src = buffer;
120 120
121 /* Special debug hack. Shut off the Rx IRQ during I/O to prevent the debug 121 /* Special debug hack. Shut off the Rx IRQ during I/O to prevent the debug
122 stub from interrupting the message */ 122 stub from interrupting the message */
@@ -172,7 +172,7 @@ static void putpacket (char *buffer)
172 172
173/* convert the memory, pointed to by mem into hex, placing result in buf */ 173/* convert the memory, pointed to by mem into hex, placing result in buf */
174/* return a pointer to the last char put in buf (null) */ 174/* return a pointer to the last char put in buf (null) */
175static char *mem2hex (char *mem, char *buf, int count) 175static char *mem2hex (const char *mem, char *buf, int count)
176{ 176{
177 int i; 177 int i;
178 int ch; 178 int ch;
@@ -186,7 +186,7 @@ static char *mem2hex (char *mem, char *buf, int count)
186 return (buf); 186 return (buf);
187} 187}
188 188
189static void debug(char *msg) 189static void debug(const char *msg)
190{ 190{
191 debugbuf[0] = 'O'; 191 debugbuf[0] = 'O';
192 192
@@ -196,7 +196,7 @@ static void debug(char *msg)
196#endif /* end of DEBUG section */ 196#endif /* end of DEBUG section */
197 197
198#ifdef __GNUC__ 198#ifdef __GNUC__
199void debugf(char *fmt, ...) 199void debugf(const char *fmt, ...)
200#endif 200#endif
201{ 201{
202#ifdef DEBUG 202#ifdef DEBUG
@@ -218,7 +218,7 @@ void debug_init(void)
218{ 218{
219} 219}
220 220
221void debugf(char *fmt, ...) 221void debugf(const char *fmt, ...)
222{ 222{
223 va_list ap; 223 va_list ap;
224 va_start( ap, fmt ); 224 va_start( ap, fmt );
@@ -226,7 +226,7 @@ void debugf(char *fmt, ...)
226 va_end( ap ); 226 va_end( ap );
227} 227}
228 228
229void ldebugf(char* file, int line, char *fmt, ...) 229void ldebugf(const char* file, int line, const char *fmt, ...)
230{ 230{
231 va_list ap; 231 va_list ap;
232 va_start( ap, fmt ); 232 va_start( ap, fmt );