[OpenWrt-Devel] [PATCH procd 1/2] instance: fix typo in error message

Petr Štetiar ynezz at true.cz
Wed Jan 15 05:30:56 EST 2020


Fixes `removed` to proper `remove` in "Failed to removed pidfile".

Fixes: b12bb150ed38 ("procd: service: Support writing pidfiles")
Signed-off-by: Petr Štetiar <ynezz at true.cz>
---
 service/instance.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/service/instance.c b/service/instance.c
index b0c98079d5b9..ce5233807dbb 100644
--- a/service/instance.c
+++ b/service/instance.c
@@ -270,7 +270,7 @@ instance_removepid(struct service_instance *in) {
 	if (!in->pidfile)
 		return 0;
 	if (unlink(in->pidfile)) {
-		ERROR("Failed to removed pidfile: %s: %m\n", in->pidfile);
+		ERROR("Failed to remove pidfile: %s: %m\n", in->pidfile);
 		return 1;
 	}
 	return 0;

_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list