# HG changeset patch # User Michiel Broek # Date 1713606500 -7200 # Node ID 6d97eb820cc1a13e511b05382b1dc76e05c373b3 # Parent cfe13185fd02421eb6ec5f02f1a826ffdabe4202 Fixed two compiler warnings on arm platform diff -r cfe13185fd02 -r 6d97eb820cc1 thermferm/one-wire.c --- a/thermferm/one-wire.c Sat Apr 20 11:34:00 2024 +0200 +++ b/thermferm/one-wire.c Sat Apr 20 11:48:20 2024 +0200 @@ -159,7 +159,7 @@ pthread_mutex_unlock(&mutexes[LOCK_ONE_WIRE]); } } else if (strcmp(w1type, (char *)"00")) { - syslog(LOG_NOTICE, "One-wire device %ld %s unknown", strlen(buffer), buffer); + syslog(LOG_NOTICE, "One-wire device %ld %s unknown", (long)strlen(buffer), buffer); } } fclose(fp); diff -r cfe13185fd02 -r 6d97eb820cc1 thermferm/websocket.c --- a/thermferm/websocket.c Sat Apr 20 11:34:00 2024 +0200 +++ b/thermferm/websocket.c Sat Apr 20 11:48:20 2024 +0200 @@ -347,7 +347,7 @@ memcpy(buf, in, len); buf[len] = '\0'; - syslog(LOG_NOTICE, "ws: received %ld bytes %s", len, buf); + syslog(LOG_NOTICE, "ws: received %ld bytes %s", (long)len, buf); /* * These are send by bmsapp to bmsd. Then bmsd resends these via MQTT. * Do we want to change that? Or use it for the new web pages.