diff options
Diffstat (limited to 'io-module/mtac_gpiob.c')
-rw-r--r-- | io-module/mtac_gpiob.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/io-module/mtac_gpiob.c b/io-module/mtac_gpiob.c index 0485494..3dbd828 100644 --- a/io-module/mtac_gpiob.c +++ b/io-module/mtac_gpiob.c @@ -154,7 +154,7 @@ static char* gpiob_gpio_pin_name_by_attr_name(const char* name, int port) { } else if (! strcmp(name, "reset")) { return "ap1-reset"; } else { - log_error("attirbute name [%s] is invalid for GPIOB in port %d", name, port); + log_error("attribute name [%s] is invalid for GPIOB in port %d", name, port); return ""; } @@ -168,10 +168,12 @@ static char* gpiob_gpio_pin_name_by_attr_name(const char* name, int port) { } else if (! strcmp(name, "reset")) { return "ap2-reset"; } else { - log_error("attirbute name [%s] is invalid for GPIOB in port %d", name, port); + log_error("attribute name [%s] is invalid for GPIOB in port %d", name, port); return ""; } } + log_error("gpiob: Invalid port number"); + return ""; } static ssize_t mts_attr_show_ap_din(struct kobject *kobj, struct kobj_attribute *attr, char *buf) |