Skip to content

Commit e86acc4

Browse files
committed
* Added debug output to set_pin_mode()
1 parent a9e745d commit e86acc4

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

source/c_pinmux.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#include <stdio.h>
22
#include <string.h>
3+
#include <syslog.h>
34

45
#include "c_pinmux.h"
56
#include "common.h"
@@ -34,10 +35,10 @@ BBIO_err set_pin_mode(const char *key, const char *mode)
3435
f = fopen(path, "w");
3536
if (NULL == f) {
3637
return BBIO_ACCESS;
37-
}
38-
38+
}
39+
syslog(LOG_DEBUG, "set_pin_mode() :: Pinmux file %s access OK", path);
3940
fprintf(f, "%s", mode);
4041
fclose(f);
41-
42+
syslog(LOG_DEBUG, "set_pin_mode() :: Set pinmux mode to %s for %s", mode, pin);
4243
return BBIO_OK;
4344
}

0 commit comments

Comments
 (0)