Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Mart Lubbers
CleanSerial
Commits
78b3c8b6
Commit
78b3c8b6
authored
Jan 23, 2017
by
Mart Lubbers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add varargs macro for debugging
parent
67a53e5e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
tty.c
tty.c
+3
-6
No files found.
tty.c
View file @
78b3c8b6
...
...
@@ -12,9 +12,9 @@
#include "Clean.h"
#ifdef DEBUG
#define debug(s
) {puts(s
); fflush(stdout);}
#define debug(s
, ...) {printf(s "\n", #__VA_ARGS__
); fflush(stdout);}
#else
#define debug(s) ;
#define debug(s
, ...
) ;
#endif
#ifdef __APPLE__
...
...
@@ -198,10 +198,7 @@ void ttyreadline(int fd, CleanString *result, int *fdo)
CleanStringLength
(
readlinecl
)
=
charsread
;
*
fdo
=
fd
;
debug
(
"Recv: "
);
debug
(
buf
);
debug
(
"
\n
"
);
free
(
buf
);
debug
(
"Recv: '%s'"
,
buf
);
debug
(
"ttyreadline-done"
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment