projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
sam3 port: enable power on all PIO input ports by default.
[bertos.git]
/
bertos
/
net
/
pocketbus.c
diff --git
a/bertos/net/pocketbus.c
b/bertos/net/pocketbus.c
index 61d4d2b44261432885e33fa0bb81050a5c8d7330..bded2db0bccbe406e47ff98f908eef8c28508c48 100644
(file)
--- a/
bertos/net/pocketbus.c
+++ b/
bertos/net/pocketbus.c
@@
-78,10
+78,16
@@
#include "pocketbus.h"
#include "pocketbus.h"
-#include <cfg/macros.h>
+#include "cfg/cfg_pocketbus.h"
+
+// Define logging setting (for cfg/log.h module).
+#define LOG_LEVEL POCKETBUS_LOG_LEVEL
+#define LOG_VERBOSITY POCKETBUS_LOG_FORMAT
+#include <cfg/log.h>
#include <cfg/debug.h>
#include <cfg/debug.h>
+#include <cfg/macros.h>
-#include <
kern
/kfile.h>
+#include <
io
/kfile.h>
#include <cpu/byteorder.h>
#include <cpu/byteorder.h>
@@
-264,7
+270,7
@@
bool pocketbus_recv(struct PocketBusCtx *ctx, struct PocketMsg *msg)
*/
if (kfile_error(ctx->fd))
{
*/
if (kfile_error(ctx->fd))
{
-
TRACEMSG("fd status[%04X]
", kfile_error(ctx->fd));
+
LOG_ERR("fd status[%04X]\n
", kfile_error(ctx->fd));
kfile_clearerr(ctx->fd);
}
kfile_clearerr(ctx->fd);
}