>>> powertop: Building main/powertop 2.15-r5 (using abuild 3.13.0-r3) started Mon, 27 May 2024 08:23:26 +0000 >>> powertop: Checking sanity of /home/buildozer/aports/main/powertop/APKBUILD... >>> powertop: Analyzing dependencies... >>> powertop: Installing for build: build-base autoconf autoconf-archive automake gettext-dev libnl3-dev libtool linux-headers ncurses-dev pciutils-dev xz zlib-dev (1/31) Installing m4 (1.4.19-r3) (2/31) Installing perl (5.38.2-r0) (3/31) Installing autoconf (2.72-r0) (4/31) Installing autoconf-archive (2023.02.20-r0) (5/31) Installing automake (1.16.5-r2) (6/31) Installing xz (5.6.1-r3) (7/31) Installing gettext-asprintf (0.22.5-r0) (8/31) Installing libintl (0.22.5-r0) (9/31) Installing gettext-libs (0.22.5-r0) (10/31) Installing gettext-envsubst (0.22.5-r0) (11/31) Installing libxml2 (2.12.7-r0) (12/31) Installing gettext (0.22.5-r0) (13/31) Installing gettext-dev (0.22.5-r0) (14/31) Installing libnl3 (3.9.0-r1) (15/31) Installing libnl3-cli (3.9.0-r1) (16/31) Installing libnl3-dev (3.9.0-r1) (17/31) Installing libltdl (2.4.7-r3) (18/31) Installing libtool (2.4.7-r3) (19/31) Installing linux-headers (6.6-r0) (20/31) Installing libformw (6.4_p20240420-r0) (21/31) Installing libmenuw (6.4_p20240420-r0) (22/31) Installing libpanelw (6.4_p20240420-r0) (23/31) Installing libncurses++ (6.4_p20240420-r0) (24/31) Installing ncurses-dev (6.4_p20240420-r0) (25/31) Installing pciutils-libs (3.12.0-r1) (26/31) Installing pciutils-dev (3.12.0-r1) (27/31) Installing zlib-dev (1.3.1-r1) (28/31) Installing .makedepends-powertop (20240527.082327) (29/31) Installing perl-error (0.17029-r2) (30/31) Installing perl-git (2.45.1-r0) (31/31) Installing git-perl (2.45.1-r0) Executing busybox-1.36.1-r28.trigger OK: 338 MiB in 141 packages >>> powertop: Cleaning up srcdir >>> powertop: Cleaning up pkgdir >>> powertop: Cleaning up tmpdir >>> powertop: Fetching https://distfiles.alpinelinux.org/distfiles/edge/powertop-2.15-2.tar.gz % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 curl: (22) The requested URL returned error: 404 >>> powertop: Fetching powertop-2.15-2.tar.gz::https://github.com/fenrus75/powertop/archive/refs/tags/v2.15.tar.gz % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 2 295k 2 9044 0 0 5909 0 0:00:51 0:00:01 0:00:50 5909 100 295k 100 295k 0 0 134k 0 0:00:02 0:00:02 --:--:-- 425k >>> powertop: Fetching https://distfiles.alpinelinux.org/distfiles/edge/powertop-2.15-2.tar.gz >>> powertop: Checking sha512sums... powertop-2.15-2.tar.gz: OK >>> powertop: Unpacking /var/cache/distfiles/powertop-2.15-2.tar.gz... autoreconf: export WARNINGS= autoreconf: Entering directory '.' autoreconf: running: autopoint Copying file ABOUT-NLS Copying file config.rpath Copying file m4/codeset.m4 Copying file m4/fcntl-o.m4 Copying file m4/gettext.m4 Copying file m4/glibc2.m4 Copying file m4/glibc21.m4 Copying file m4/iconv.m4 Copying file m4/intdiv0.m4 Copying file m4/intl.m4 Copying file m4/intldir.m4 Copying file m4/intlmacosx.m4 Copying file m4/intmax.m4 Copying file m4/inttypes-pri.m4 Copying file m4/inttypes_h.m4 Copying file m4/lcmessage.m4 Copying file m4/lib-ld.m4 Copying file m4/lib-link.m4 Copying file m4/lib-prefix.m4 Copying file m4/lock.m4 Copying file m4/longlong.m4 Copying file m4/nls.m4 Copying file m4/po.m4 Copying file m4/printf-posix.m4 Copying file m4/progtest.m4 Copying file m4/size_max.m4 Copying file m4/stdint_h.m4 Copying file m4/threadlib.m4 Copying file m4/uintmax_t.m4 Copying file m4/visibility.m4 Copying file m4/wchar_t.m4 Copying file m4/wint_t.m4 Copying file m4/xsize.m4 Copying file po/Makevars.template Copying file po/Rules-quot Copying file po/boldquot.sed Copying file po/en@boldquot.header Copying file po/en@quot.header Copying file po/insert-header.sin Copying file po/quot.sed Copying file po/remove-potcdate.sin autoreconf: running: aclocal --install -I m4 aclocal: installing 'm4/ax_add_fortify_source.m4' from '/usr/share/aclocal/ax_add_fortify_source.m4' aclocal: installing 'm4/ax_check_compile_flag.m4' from '/usr/share/aclocal/ax_check_compile_flag.m4' aclocal: installing 'm4/ax_cxx_compile_stdcxx.m4' from '/usr/share/aclocal/ax_cxx_compile_stdcxx.m4' aclocal: installing 'm4/ax_pthread.m4' from '/usr/share/aclocal/ax_pthread.m4' aclocal: installing 'm4/ax_require_defined.m4' from '/usr/share/aclocal/ax_require_defined.m4' aclocal: installing 'm4/libtool.m4' from '/usr/share/aclocal/libtool.m4' aclocal: installing 'm4/ltoptions.m4' from '/usr/share/aclocal/ltoptions.m4' aclocal: installing 'm4/ltsugar.m4' from '/usr/share/aclocal/ltsugar.m4' aclocal: installing 'm4/ltversion.m4' from '/usr/share/aclocal/ltversion.m4' aclocal: installing 'm4/lt~obsolete.m4' from '/usr/share/aclocal/lt~obsolete.m4' aclocal: installing 'm4/pkg.m4' from '/usr/share/aclocal/pkg.m4' autoreconf: configure.ac: tracing autoreconf: running: libtoolize --copy libtoolize: putting auxiliary files in '.'. libtoolize: copying file './ltmain.sh' autoreconf: configure.ac: not using Intltool autoreconf: configure.ac: not using Gtkdoc autoreconf: running: aclocal --install -I m4 autoreconf: running: /usr/bin/autoconf configure.ac:38: warning: The macro 'AC_PROG_LIBTOOL' is obsolete. configure.ac:38: You should run autoupdate. m4/libtool.m4:100: AC_PROG_LIBTOOL is expanded from... configure.ac:38: the top level autoreconf: running: /usr/bin/autoheader autoreconf: running: automake --add-missing --copy --no-force configure.ac:31: installing './ar-lib' configure.ac:28: installing './compile' configure.ac:28: installing './config.guess' configure.ac:28: installing './config.sub' configure.ac:6: installing './install-sh' configure.ac:6: installing './missing' src/Makefile.am: installing './depcomp' autoreconf: Leaving directory '.' checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a race-free mkdir -p... /bin/mkdir -p checking for gawk... no checking for mawk... no checking for nawk... no checking for awk... awk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking whether make supports the include directive... yes (GNU style) checking whether the C++ compiler works... yes checking for C++ compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether the compiler supports GNU C++... yes checking whether g++ accepts -g... yes checking for g++ option to enable C++11 features... none needed checking dependency style of g++... gcc3 checking for stdio.h... yes checking for stdlib.h... yes checking for string.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for strings.h... yes checking for sys/stat.h... yes checking for sys/types.h... yes checking for unistd.h... yes checking for wchar.h... yes checking for minix/config.h... no checking for sys/param.h... yes checking whether it is safe to define __EXTENSIONS__... yes checking whether _XOPEN_SOURCE should be defined... no checking whether make supports nested variables... (cached) yes checking whether NLS is requested... no checking for msgfmt... /usr/bin/msgfmt checking for gmsgfmt... /usr/bin/msgfmt checking for xgettext... /usr/bin/xgettext checking for msgmerge... /usr/bin/msgmerge checking for powerpc64le-alpine-linux-musl-gcc... gcc checking whether the compiler supports GNU C... yes checking whether gcc accepts -g... yes checking for gcc option to enable C11 features... none needed checking whether gcc understands -c and -o together... yes checking dependency style of gcc... gcc3 checking build system type... powerpc64le-alpine-linux-musl checking host system type... powerpc64le-alpine-linux-musl checking for ld used by gcc... /usr/powerpc64le-alpine-linux-musl/bin/ld checking if the linker (/usr/powerpc64le-alpine-linux-musl/bin/ld) is GNU ld... yes checking for shared library run path origin... done checking how to run the C++ preprocessor... g++ -E checking for egrep -e... /bin/grep -E checking for CFPreferencesCopyAppValue... no checking for CFLocaleCopyCurrent... no checking whether to use NLS... no checking for powerpc64le-alpine-linux-musl-ar... no checking for powerpc64le-alpine-linux-musl-lib... no checking for powerpc64le-alpine-linux-musl-link... no checking for ar... ar checking the archiver (ar) interface... ar checking how to run the C preprocessor... gcc -E checking whether the compiler supports GNU C++... (cached) yes checking whether g++ accepts -g... (cached) yes checking for g++ option to enable C++11 features... (cached) none needed checking dependency style of g++... (cached) gcc3 checking how to print strings... printf checking for a sed that does not truncate output... /bin/sed checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for fgrep... /bin/grep -F checking for ld used by gcc... /usr/powerpc64le-alpine-linux-musl/bin/ld checking if the linker (/usr/powerpc64le-alpine-linux-musl/bin/ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B checking the name lister (/usr/bin/nm -B) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 98304 checking how to convert powerpc64le-alpine-linux-musl file names to powerpc64le-alpine-linux-musl format... func_convert_file_noop checking how to convert powerpc64le-alpine-linux-musl file names to toolchain format... func_convert_file_noop checking for /usr/powerpc64le-alpine-linux-musl/bin/ld option to reload object files... -r checking for powerpc64le-alpine-linux-musl-file... no checking for file... file checking for powerpc64le-alpine-linux-musl-objdump... no checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for powerpc64le-alpine-linux-musl-dlltool... no checking for dlltool... no checking how to associate runtime and link libraries... printf %s\n checking for powerpc64le-alpine-linux-musl-ar... ar checking for archiver @FILE support... @ checking for powerpc64le-alpine-linux-musl-strip... no checking for strip... strip checking for powerpc64le-alpine-linux-musl-ranlib... no checking for ranlib... ranlib checking command to parse /usr/bin/nm -B output from gcc object... ok checking for sysroot... no checking for a working dd... /bin/dd checking how to truncate binary pipes... /bin/dd bs=4096 count=1 checking for powerpc64le-alpine-linux-musl-mt... no checking for mt... no checking if : is a manifest tool... no checking for dlfcn.h... yes checking for objdir... .libs checking if gcc supports -fno-rtti -fno-exceptions... no checking for gcc option to produce PIC... -fPIC -DPIC checking if gcc PIC flag -fPIC -DPIC works... yes checking if gcc static flag -static works... no checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.o... (cached) yes checking whether the gcc linker (/usr/powerpc64le-alpine-linux-musl/bin/ld) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... yes checking how to run the C++ preprocessor... g++ -E checking for ld used by g++... /usr/powerpc64le-alpine-linux-musl/bin/ld checking if the linker (/usr/powerpc64le-alpine-linux-musl/bin/ld) is GNU ld... yes checking whether the g++ linker (/usr/powerpc64le-alpine-linux-musl/bin/ld) supports shared libraries... yes checking for g++ option to produce PIC... -fPIC -DPIC checking if g++ PIC flag -fPIC -DPIC works... yes checking if g++ static flag -static works... no checking if g++ supports -c -o file.o... yes checking if g++ supports -c -o file.o... (cached) yes checking whether the g++ linker (/usr/powerpc64le-alpine-linux-musl/bin/ld) supports shared libraries... yes checking dynamic linker characteristics... (cached) GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking for powerpc64le-alpine-linux-musl-gcc... (cached) gcc checking whether the compiler supports GNU C... (cached) yes checking whether gcc accepts -g... (cached) yes checking for gcc option to enable C11 features... (cached) none needed checking whether gcc understands -c and -o together... (cached) yes checking dependency style of gcc... (cached) gcc3 checking whether C++ compiler accepts -Werror... yes checking whether to add -D_FORTIFY_SOURCE=3 to CPPFLAGS... no checking whether to add -D_FORTIFY_SOURCE=2 to CPPFLAGS... no checking whether g++ supports C++11 features with -std=c++11... yes checking for powerpc64le-alpine-linux-musl-pkg-config... no checking for pkg-config... /usr/bin/pkg-config checking pkg-config is at least version 0.9.0... yes checking whether gcc is Clang... no checking whether pthreads work with "-pthread" and "-lpthread"... yes checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE checking whether more special flags are required for pthreads... no checking for PTHREAD_PRIO_INHERIT... yes checking for fcntl.h... yes checking for libintl.h... yes checking for limits.h... yes checking for locale.h... yes checking for malloc.h... yes checking for ncurses.h... yes checking for stdint.h... (cached) yes checking for stdlib.h... (cached) yes checking for string.h... (cached) yes checking for sys/ioctl.h... yes checking for sys/socket.h... yes checking for sys/statfs.h... yes checking for sys/time.h... yes checking for termios.h... yes checking for unistd.h... (cached) yes checking for _Bool... no checking for stdbool.h that conforms to C99 or later... yes checking for inline... inline checking for int64_t... yes checking for pid_t... yes checking for size_t... yes checking for ssize_t... yes checking for uint16_t... yes checking for uint32_t... yes checking for uint64_t... yes checking for GNU libc compatible malloc... yes checking for getpagesize... yes checking for working mmap... yes checking for GNU libc compatible realloc... yes checking for g++ -std=c++11 options needed to detect all undeclared functions... none needed checking whether strerror_r is declared... yes checking whether strerror_r returns char *... no checking for working strtod... yes checking for clock_gettime... yes checking for fdatasync... yes checking for getpagesize... (cached) yes checking for gettimeofday... yes checking for memmove... yes checking for memset... yes checking for mkdir... yes checking for munmap... yes checking for pow... yes checking for realpath... yes checking for regcomp... yes checking for select... yes checking for setlocale... yes checking for socket... yes checking for sqrt... yes checking for strcasecmp... yes checking for strchr... yes checking for strrchr... yes checking for strdup... yes checking for strerror... yes checking for strncasecmp... yes checking for strstr... yes checking for strtoul... yes checking for strtoull... yes checking for library containing clock_gettime... none required checking for ncursesw ncurses... yes checking for libpci... yes checking for libnl-3.0 >= 3.0 libnl-genl-3.0 >= 3.0... yes checking for library containing inet_aton... none required checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating Doxyfile config.status: creating src/Makefile config.status: creating traceevent/Makefile config.status: creating po/Makefile.in config.status: creating doc/Makefile config.status: creating scripts/bash-completion/Makefile config.status: creating config.h config.status: executing depfiles commands config.status: executing po-directories commands config.status: creating po/POTFILES config.status: creating po/Makefile config.status: executing libtool commands make all-recursive make[1]: Entering directory '/home/buildozer/aports/main/powertop/src/powertop-2.15' Making all in traceevent make[2]: Entering directory '/home/buildozer/aports/main/powertop/src/powertop-2.15/traceevent' CC event-parse.lo CC parse-filter.lo CC parse-utils.lo CC trace-seq.lo CCLD libtraceevnet.la make[2]: Leaving directory '/home/buildozer/aports/main/powertop/src/powertop-2.15/traceevent' Making all in src make[2]: Entering directory '/home/buildozer/aports/main/powertop/src/powertop-2.15/src' /bin/sh ./csstoh.sh ./powertop.css css.h make all-am make[3]: Entering directory '/home/buildozer/aports/main/powertop/src/powertop-2.15/src' CXX powertop-devlist.o CXX powertop-display.o CXX powertop-lib.o CXX powertop-main.o CXX calibrate/powertop-calibrate.o CXX cpu/powertop-abstract_cpu.o CXX cpu/powertop-cpu.o CXX cpu/powertop-cpu_core.o CXX cpu/powertop-cpu_linux.o CXX cpu/powertop-cpu_package.o CXX cpu/powertop-cpu_rapl_device.o CXX cpu/powertop-cpudevice.o CXX cpu/powertop-dram_rapl_device.o CXX cpu/powertop-intel_cpus.o CXX cpu/powertop-intel_gpu.o CXX cpu/rapl/powertop-rapl_interface.o CXX devices/powertop-ahci.o CXX devices/powertop-alsa.o CXX devices/powertop-backlight.o CXX devices/powertop-devfreq.o CXX devices/powertop-device.o CXX devices/powertop-gpu_rapl_device.o CXX devices/powertop-i915-gpu.o CXX devices/powertop-network.o CXX devices/powertop-rfkill.o CXX devices/powertop-runtime_pm.o CXX devices/powertop-thinkpad-fan.o CXX devices/powertop-thinkpad-light.o CXX devices/powertop-usb.o CXX measurement/powertop-acpi.o CXX measurement/powertop-extech.o CXX measurement/powertop-measurement.o CXX measurement/powertop-sysfs.o CXX measurement/powertop-opal-sensors.o CXX parameters/powertop-learn.o CXX parameters/powertop-parameters.o CXX parameters/powertop-persistent.o CXX perf/powertop-perf.o CXX perf/powertop-perf_bundle.o CXX process/powertop-do_process.o CXX process/powertop-interrupt.o CXX process/powertop-powerconsumer.o CXX process/powertop-process.o CXX process/powertop-processdevice.o CXX process/powertop-timer.o CXX process/powertop-work.o CXX report/powertop-report-data-html.o CXX report/powertop-report-formatter-base.o CXX report/powertop-report-formatter-csv.o CXX report/powertop-report-formatter-html.o CXX report/powertop-report-maker.o CXX report/powertop-report.o CXX tuning/powertop-bluetooth.o CXX tuning/powertop-ethernet.o CC tuning/powertop-iw.o CXX tuning/powertop-runtime.o CXX tuning/powertop-tunable.o CXX tuning/powertop-tuning.o CXX tuning/powertop-tuningsysfs.o CXX tuning/powertop-tuningusb.o CXX tuning/powertop-tuningi2c.o CXX tuning/powertop-wifi.o CXX wakeup/powertop-wakeup.o CXX wakeup/powertop-waketab.o CXX wakeup/powertop-wakeup_ethernet.o CXX wakeup/powertop-wakeup_usb.o In file included from tuning/tunable.h:30, from tuning/wifi.cpp:27: tuning/wifi.cpp: In constructor 'wifi_tunable::wifi_tunable(const char*)': tuning/wifi.cpp:48:25: warning: '%s' directive writing up to 4095 bytes into a region of size 4060 [-Wformat-overflow=] 48 | sprintf(desc, _("Wireless Power Saving for interface %s"), iface); tuning/../lib.h:41:23: note: in definition of macro '_' 41 | #define _(STRING) (STRING) | ^~~~~~ tuning/wifi.cpp:48:16: note: 'sprintf' output between 37 and 4132 bytes into a destination of size 4096 48 | sprintf(desc, _("Wireless Power Saving for interface %s"), iface); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tuning/wifi.cpp:50:60: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4089 [-Wformat-truncation=] 50 | snprintf(toggle_good, sizeof(toggle_good), "iw dev %s set power_save on", iface); | ^~ tuning/wifi.cpp:50:17: note: 'snprintf' output between 26 and 4121 bytes into a destination of size 4096 50 | snprintf(toggle_good, sizeof(toggle_good), "iw dev %s set power_save on", iface); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tuning/wifi.cpp:51:58: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4089 [-Wformat-truncation=] 51 | snprintf(toggle_bad, sizeof(toggle_bad), "iw dev %s set power_save off", iface); | ^~ tuning/wifi.cpp:51:17: note: 'snprintf' output between 27 and 4122 bytes into a destination of size 4096 51 | snprintf(toggle_bad, sizeof(toggle_bad), "iw dev %s set power_save off", iface); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tuning/tuningsysfs.cpp: In constructor 'sysfs_tunable::sysfs_tunable(const char*, const char*, const char*)': tuning/tuningsysfs.cpp:50:59: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4090 [-Wformat-truncation=] 50 | snprintf(toggle_good, sizeof(toggle_good), "echo '%s' > '%s';", target_value, sysfs_path); | ^~ tuning/tuningsysfs.cpp:50:17: note: 'snprintf' output between 14 and 8204 bytes into a destination of size 4096 50 | snprintf(toggle_good, sizeof(toggle_good), "echo '%s' > '%s';", target_value, sysfs_path); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tuning/tuningsysfs.cpp:51:57: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4090 [-Wformat-truncation=] 51 | snprintf(toggle_bad, sizeof(toggle_bad), "echo '%s' > '%s';", bad_value, sysfs_path); | ^~ tuning/tuningsysfs.cpp:51:17: note: 'snprintf' output between 14 and 8204 bytes into a destination of size 4096 51 | snprintf(toggle_bad, sizeof(toggle_bad), "echo '%s' > '%s';", bad_value, sysfs_path); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ devices/alsa.cpp: In member function 'virtual const char* alsa::human_name()': devices/alsa.cpp:205:57: warning: ' (' directive output may be truncated writing 2 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] 205 | snprintf(temp_buf, sizeof(temp_buf), "%s (%s)", humanname, guilty); | ^~ devices/alsa.cpp:205:25: note: 'snprintf' output between 4 and 8194 bytes into a destination of size 4096 205 | snprintf(temp_buf, sizeof(temp_buf), "%s (%s)", humanname, guilty); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cpu/cpu_linux.cpp: In member function 'void cpu_linux::parse_cstates_end()': cpu/cpu_linux.cpp:171:68: warning: '%s' directive output may be truncated writing up to 255 bytes into a region of size 219 [-Wformat-truncation=] 171 | snprintf(filename + len, sizeof(filename) - len, "/%s/usage", entry->d_name); | ^~ cpu/cpu_linux.cpp:171:25: note: 'snprintf' output between 8 and 263 bytes into a destination of size 220 171 | snprintf(filename + len, sizeof(filename) - len, "/%s/usage", entry->d_name); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cpu/cpu_linux.cpp:179:68: warning: '%s' directive output may be truncated writing up to 255 bytes into a region of size 219 [-Wformat-truncation=] 179 | snprintf(filename + len, sizeof(filename) - len, "/%s/time", entry->d_name); | ^~ cpu/cpu_linux.cpp:179:25: note: 'snprintf' output between 7 and 262 bytes into a destination of size 220 179 | snprintf(filename + len, sizeof(filename) - len, "/%s/time", entry->d_name); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ devices/backlight.cpp: In member function 'virtual double backlight::power_usage(result_bundle*, parameter_bundle*)': devices/backlight.cpp:217:39: warning: '-power' directive writing 6 bytes into a region of size between 1 and 4096 [-Wformat-overflow=] 217 | sprintf(powername, "%s-power", name); | ^~~~~~ devices/backlight.cpp:217:24: note: 'sprintf' output between 7 and 4102 bytes into a destination of size 4096 217 | sprintf(powername, "%s-power", name); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ devices/alsa.cpp: In member function 'virtual void alsa::start_measurement()': devices/alsa.cpp:89:49: warning: '/power_off_acct' directive output may be truncated writing 15 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] 89 | snprintf(filename, sizeof(filename), "%s/power_off_acct", sysfs_path); | ^~~~~~~~~~~~~~~ devices/alsa.cpp:89:17: note: 'snprintf' output between 16 and 4111 bytes into a destination of size 4096 89 | snprintf(filename, sizeof(filename), "%s/power_off_acct", sysfs_path); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ devices/alsa.cpp:96:57: warning: '/power_on_acct' directive output may be truncated writing 14 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] 96 | snprintf(filename, sizeof(filename), "%s/power_on_acct", sysfs_path); | ^~~~~~~~~~~~~~ devices/alsa.cpp:96:25: note: 'snprintf' output between 15 and 4110 bytes into a destination of size 4096 96 | snprintf(filename, sizeof(filename), "%s/power_on_acct", sysfs_path); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cpu/cpu_linux.cpp: In member function 'void cpu_linux::parse_cstates_start()': cpu/cpu_linux.cpp:70:68: warning: '%s' directive output may be truncated writing up to 255 bytes into a region of size 219 [-Wformat-truncation=] 70 | snprintf(filename + len, sizeof(filename) - len, "/%s/name", entry->d_name); | ^~ cpu/cpu_linux.cpp:70:25: note: 'snprintf' output between 7 and 262 bytes into a destination of size 220 70 | snprintf(filename + len, sizeof(filename) - len, "/%s/name", entry->d_name); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cpu/cpu_linux.cpp:81:68: warning: '%s' directive output may be truncated writing up to 255 bytes into a region of size 219 [-Wformat-truncation=] 81 | snprintf(filename + len, sizeof(filename) - len, "/%s/usage", entry->d_name); | ^~ cpu/cpu_linux.cpp:81:25: note: 'snprintf' output between 8 and 263 bytes into a destination of size 220 81 | snprintf(filename + len, sizeof(filename) - len, "/%s/usage", entry->d_name); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cpu/cpu_linux.cpp:89:68: warning: '%s' directive output may be truncated writing up to 255 bytes into a region of size 219 [-Wformat-truncation=] 89 | snprintf(filename + len, sizeof(filename) - len, "/%s/time", entry->d_name); | ^~ cpu/cpu_linux.cpp:89:25: note: 'snprintf' output between 7 and 262 bytes into a destination of size 220 89 | snprintf(filename + len, sizeof(filename) - len, "/%s/time", entry->d_name); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ devices/alsa.cpp: In member function 'virtual void alsa::end_measurement()': devices/alsa.cpp:115:49: warning: '/power_off_acct' directive output may be truncated writing 15 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] 115 | snprintf(filename, sizeof(filename), "%s/power_off_acct", sysfs_path); | ^~~~~~~~~~~~~~~ devices/alsa.cpp:115:17: note: 'snprintf' output between 16 and 4111 bytes into a destination of size 4096 115 | snprintf(filename, sizeof(filename), "%s/power_off_acct", sysfs_path); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ devices/alsa.cpp:122:57: warning: '/power_on_acct' directive output may be truncated writing 14 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] 122 | snprintf(filename, sizeof(filename), "%s/power_on_acct", sysfs_path); | ^~~~~~~~~~~~~~ devices/alsa.cpp:122:25: note: 'snprintf' output between 15 and 4110 bytes into a destination of size 4096 122 | snprintf(filename, sizeof(filename), "%s/power_on_acct", sysfs_path); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ devices/backlight.cpp: In member function 'virtual void backlight::start_measurement()': devices/backlight.cpp:61:49: warning: '/max_brightness' directive output may be truncated writing 15 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] 61 | snprintf(filename, sizeof(filename), "%s/max_brightness", sysfs_path); | ^~~~~~~~~~~~~~~ devices/backlight.cpp:61:17: note: 'snprintf' output between 16 and 4111 bytes into a destination of size 4096 61 | snprintf(filename, sizeof(filename), "%s/max_brightness", sysfs_path); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ devices/backlight.cpp:68:49: warning: '/actual_brightness' directive output may be truncated writing 18 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] 68 | snprintf(filename, sizeof(filename), "%s/actual_brightness", sysfs_path); | ^~~~~~~~~~~~~~~~~~ devices/backlight.cpp:68:17: note: 'snprintf' output between 19 and 4114 bytes into a destination of size 4096 68 | snprintf(filename, sizeof(filename), "%s/actual_brightness", sysfs_path); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ devices/rfkill.cpp: In member function 'virtual void rfkill::start_measurement()': devices/rfkill.cpp:83:49: warning: '/hard' directive output may be truncated writing 5 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] 83 | snprintf(filename, sizeof(filename), "%s/hard", sysfs_path); | ^~~~~ devices/rfkill.cpp:83:17: note: 'snprintf' output between 6 and 4101 bytes into a destination of size 4096 83 | snprintf(filename, sizeof(filename), "%s/hard", sysfs_path); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ devices/rfkill.cpp:90:49: warning: '/soft' directive output may be truncated writing 5 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] 90 | snprintf(filename, sizeof(filename), "%s/soft", sysfs_path); | ^~~~~ devices/rfkill.cpp:90:17: note: 'snprintf' output between 6 and 4101 bytes into a destination of size 4096 90 | snprintf(filename, sizeof(filename), "%s/soft", sysfs_path); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from tuning/tunable.h:30, from tuning/tuningusb.cpp:27: tuning/tuningusb.cpp: In constructor 'usb_tunable::usb_tunable(const char*, const char*)': tuning/tuningusb.cpp:71:48: warning: '%s' directive output may be truncated writing up to 2047 bytes into a region of size between 2020 and 4067 [-Wformat-truncation=] 71 | snprintf(desc, sizeof(desc), _("Autosuspend for USB device %s [%s]"), product, vendor); | ~ tuning/../lib.h:41:23: note: in definition of macro '_' 41 | #define _(STRING) (STRING) | ^~~~~~ tuning/tuningusb.cpp:71:25: note: 'snprintf' output between 31 and 4125 bytes into a destination of size 4096 71 | snprintf(desc, sizeof(desc), _("Autosuspend for USB device %s [%s]"), product, vendor); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tuning/tuningusb.cpp:77:68: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4081 [-Wformat-truncation=] 77 | snprintf(toggle_good, sizeof(toggle_good), "echo 'auto' > '%s';", usb_path); | ^~ tuning/tuningusb.cpp:77:17: note: 'snprintf' output between 18 and 4113 bytes into a destination of size 4096 77 | snprintf(toggle_good, sizeof(toggle_good), "echo 'auto' > '%s';", usb_path); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tuning/tuningusb.cpp:78:64: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4083 [-Wformat-truncation=] 78 | snprintf(toggle_bad, sizeof(toggle_bad), "echo 'on' > '%s';", usb_path); | ^~ tuning/tuningusb.cpp:78:17: note: 'snprintf' output between 16 and 4111 bytes into a destination of size 4096 78 | snprintf(toggle_bad, sizeof(toggle_bad), "echo 'on' > '%s';", usb_path); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from devices/../parameters/parameters.h:35, from devices/alsa.h:30, from devices/alsa.cpp:35: devices/alsa.cpp: In constructor 'alsa::alsa(const char*, const char*)': devices/alsa.cpp:81:58: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4082 [-Wformat-truncation=] 81 | snprintf(humanname, sizeof(humanname), _("Audio codec %s: %s"), _name, vendor); | ~ devices/../parameters/../lib.h:41:23: note: in definition of macro '_' 41 | #define _(STRING) (STRING) | ^~~~~~ devices/alsa.cpp:81:25: note: 'snprintf' output 15 or more bytes (assuming 4110) into a destination of size 4096 81 | snprintf(humanname, sizeof(humanname), _("Audio codec %s: %s"), _name, vendor); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ devices/alsa.cpp:79:58: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4082 [-Wformat-truncation=] 79 | snprintf(humanname, sizeof(humanname), _("Audio codec %s: %s"), _name, model); | ~ devices/../parameters/../lib.h:41:23: note: in definition of macro '_' 41 | #define _(STRING) (STRING) | ^~~~~~ devices/alsa.cpp:79:25: note: 'snprintf' output 15 or more bytes (assuming 4110) into a destination of size 4096 79 | snprintf(humanname, sizeof(humanname), _("Audio codec %s: %s"), _name, model); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ devices/alsa.cpp:77:58: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4084 [-Wformat-truncation=] 77 | snprintf(humanname, sizeof(humanname), _("Audio codec %s: %s (%s)"), name, model, vendor); devices/../parameters/../lib.h:41:23: note: in definition of macro '_' 41 | #define _(STRING) (STRING) | ^~~~~~ devices/alsa.cpp:77:25: note: 'snprintf' output between 18 and 12303 bytes into a destination of size 4096 77 | snprintf(humanname, sizeof(humanname), _("Audio codec %s: %s (%s)"), name, model, vendor); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ devices/rfkill.cpp: In member function 'virtual void rfkill::end_measurement()': devices/rfkill.cpp:103:49: warning: '/hard' directive output may be truncated writing 5 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] 103 | snprintf(filename, sizeof(filename), "%s/hard", sysfs_path); | ^~~~~ devices/rfkill.cpp:103:17: note: 'snprintf' output between 6 and 4101 bytes into a destination of size 4096 103 | snprintf(filename, sizeof(filename), "%s/hard", sysfs_path); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ devices/rfkill.cpp:109:49: warning: '/soft' directive output may be truncated writing 5 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] 109 | snprintf(filename, sizeof(filename), "%s/soft", sysfs_path); | ^~~~~ devices/rfkill.cpp:109:17: note: 'snprintf' output between 6 and 4101 bytes into a destination of size 4096 109 | snprintf(filename, sizeof(filename), "%s/soft", sysfs_path); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ devices/runtime_pm.cpp: In member function 'virtual void runtime_pmdevice::start_measurement()': devices/runtime_pm.cpp:69:49: warning: '/power/runtime_suspended_time' directive output may be truncated writing 29 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] 69 | snprintf(filename, sizeof(filename), "%s/power/runtime_suspended_time", sysfs_path); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ devices/runtime_pm.cpp:69:17: note: 'snprintf' output between 30 and 4125 bytes into a destination of size 4096 69 | snprintf(filename, sizeof(filename), "%s/power/runtime_suspended_time", sysfs_path); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ devices/runtime_pm.cpp:76:49: warning: '/power/runtime_active_time' directive output may be truncated writing 26 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] 76 | snprintf(filename, sizeof(filename), "%s/power/runtime_active_time", sysfs_path); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ devices/runtime_pm.cpp:76:17: note: 'snprintf' output between 27 and 4122 bytes into a destination of size 4096 76 | snprintf(filename, sizeof(filename), "%s/power/runtime_active_time", sysfs_path); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ devices/backlight.cpp: In member function 'virtual void backlight::end_measurement()': devices/backlight.cpp:125:49: warning: '/actual_brightness' directive output may be truncated writing 18 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] 125 | snprintf(filename, sizeof(filename), "%s/actual_brightness", sysfs_path); | ^~~~~~~~~~~~~~~~~~ devices/backlight.cpp:125:17: note: 'snprintf' output between 19 and 4114 bytes into a destination of size 4096 125 | snprintf(filename, sizeof(filename), "%s/actual_brightness", sysfs_path); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ devices/backlight.cpp:140:51: warning: '-power' directive output may be truncated writing 6 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] 140 | snprintf(powername, sizeof(powername), "%s-power", name); | ^~~~~~ devices/backlight.cpp:140:17: note: 'snprintf' output between 7 and 4102 bytes into a destination of size 4096 140 | snprintf(powername, sizeof(powername), "%s-power", name); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ devices/runtime_pm.cpp: In member function 'virtual void runtime_pmdevice::end_measurement()': devices/runtime_pm.cpp:89:49: warning: '/power/runtime_suspended_time' directive output may be truncated writing 29 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] 89 | snprintf(filename, sizeof(filename), "%s/power/runtime_suspended_time", sysfs_path); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ devices/runtime_pm.cpp:89:17: note: 'snprintf' output between 30 and 4125 bytes into a destination of size 4096 89 | snprintf(filename, sizeof(filename), "%s/power/runtime_suspended_time", sysfs_path); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ devices/runtime_pm.cpp:96:49: warning: '/power/runtime_active_time' directive output may be truncated writing 26 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] 96 | snprintf(filename, sizeof(filename), "%s/power/runtime_active_time", sysfs_path); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ devices/runtime_pm.cpp:96:17: note: 'snprintf' output between 27 and 4122 bytes into a destination of size 4096 96 | snprintf(filename, sizeof(filename), "%s/power/runtime_active_time", sysfs_path); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ devices/usb.cpp: In member function 'virtual void usbdevice::start_measurement()': devices/usb.cpp:129:49: warning: '/power/active_duration' directive output may be truncated writing 22 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] 129 | snprintf(fullpath, sizeof(fullpath), "%s/power/active_duration", sysfs_path); | ^~~~~~~~~~~~~~~~~~~~~~ devices/usb.cpp:129:17: note: 'snprintf' output between 23 and 4118 bytes into a destination of size 4096 129 | snprintf(fullpath, sizeof(fullpath), "%s/power/active_duration", sysfs_path); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ devices/usb.cpp:136:49: warning: '/power/connected_duration' directive output may be truncated writing 25 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] 136 | snprintf(fullpath, sizeof(fullpath), "%s/power/connected_duration", sysfs_path); | ^~~~~~~~~~~~~~~~~~~~~~~~~ devices/usb.cpp:136:17: note: 'snprintf' output between 26 and 4121 bytes into a destination of size 4096 136 | snprintf(fullpath, sizeof(fullpath), "%s/power/connected_duration", sysfs_path); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tuning/tuningi2c.cpp: In constructor 'i2c_tunable::i2c_tunable(const char*, const char*, bool)': tuning/tuningi2c.cpp:61:68: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4081 [-Wformat-truncation=] 61 | snprintf(toggle_good, sizeof(toggle_good), "echo 'auto' > '%s';", i2c_path); | ^~ tuning/tuningi2c.cpp:61:17: note: 'snprintf' output between 18 and 4113 bytes into a destination of size 4096 61 | snprintf(toggle_good, sizeof(toggle_good), "echo 'auto' > '%s';", i2c_path); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tuning/tuningi2c.cpp:62:64: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4083 [-Wformat-truncation=] 62 | snprintf(toggle_bad, sizeof(toggle_bad), "echo 'on' > '%s';", i2c_path); | ^~ tuning/tuningi2c.cpp:62:17: note: 'snprintf' output between 16 and 4111 bytes into a destination of size 4096 62 | snprintf(toggle_bad, sizeof(toggle_bad), "echo 'on' > '%s';", i2c_path); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ devices/usb.cpp: In member function 'virtual void usbdevice::end_measurement()': devices/usb.cpp:149:49: warning: '/power/active_duration' directive output may be truncated writing 22 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] 149 | snprintf(fullpath, sizeof(fullpath), "%s/power/active_duration", sysfs_path); | ^~~~~~~~~~~~~~~~~~~~~~ devices/usb.cpp:149:17: note: 'snprintf' output between 23 and 4118 bytes into a destination of size 4096 149 | snprintf(fullpath, sizeof(fullpath), "%s/power/active_duration", sysfs_path); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ devices/usb.cpp:156:49: warning: '/power/connected_duration' directive output may be truncated writing 25 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] 156 | snprintf(fullpath, sizeof(fullpath), "%s/power/connected_duration", sysfs_path); | ^~~~~~~~~~~~~~~~~~~~~~~~~ devices/usb.cpp:156:17: note: 'snprintf' output between 26 and 4121 bytes into a destination of size 4096 156 | snprintf(fullpath, sizeof(fullpath), "%s/power/connected_duration", sysfs_path); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tuning/runtime.cpp: In constructor 'runtime_tunable::runtime_tunable(const char*, const char*, const char*, const char*)': tuning/runtime.cpp:86:68: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4081 [-Wformat-truncation=] 86 | snprintf(toggle_good, sizeof(toggle_good), "echo 'auto' > '%s';", runtime_path); | ^~ tuning/runtime.cpp:86:17: note: 'snprintf' output between 18 and 4113 bytes into a destination of size 4096 86 | snprintf(toggle_good, sizeof(toggle_good), "echo 'auto' > '%s';", runtime_path); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tuning/runtime.cpp:87:64: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4083 [-Wformat-truncation=] 87 | snprintf(toggle_bad, sizeof(toggle_bad), "echo 'on' > '%s';", runtime_path); | ^~ tuning/runtime.cpp:87:17: note: 'snprintf' output between 16 and 4111 bytes into a destination of size 4096 87 | snprintf(toggle_bad, sizeof(toggle_bad), "echo 'on' > '%s';", runtime_path); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from devices/../parameters/parameters.h:35, from devices/usb.h:31, from devices/usb.cpp:25: devices/usb.cpp: In constructor 'usbdevice::usbdevice(const char*, const char*, const char*)': devices/usb.cpp:96:58: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4084 [-Wformat-truncation=] 96 | snprintf(humanname, sizeof(humanname), _("USB device: %s"), product); | ~ devices/../parameters/../lib.h:41:23: note: in definition of macro '_' 41 | #define _(STRING) (STRING) | ^~~~~~ devices/usb.cpp:96:25: note: 'snprintf' output between 13 and 4108 bytes into a destination of size 4096 96 | snprintf(humanname, sizeof(humanname), _("USB device: %s"), product); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ devices/usb.cpp:98:58: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4084 [-Wformat-truncation=] 98 | snprintf(humanname, sizeof(humanname), _("USB device: %s"), vendor); | ~ devices/../parameters/../lib.h:41:23: note: in definition of macro '_' 41 | #define _(STRING) (STRING) | ^~~~~~ devices/usb.cpp:98:25: note: 'snprintf' output between 13 and 4108 bytes into a destination of size 4096 98 | snprintf(humanname, sizeof(humanname), _("USB device: %s"), vendor); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ devices/usb.cpp:94:58: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4084 [-Wformat-truncation=] 94 | snprintf(humanname, sizeof(humanname), _("USB device: %s (%s)"), product, vendor); | ~ devices/../parameters/../lib.h:41:23: note: in definition of macro '_' 41 | #define _(STRING) (STRING) | ^~~~~~ devices/usb.cpp:94:25: note: 'snprintf' output between 16 and 8206 bytes into a destination of size 4096 94 | snprintf(humanname, sizeof(humanname), _("USB device: %s (%s)"), product, vendor); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ wakeup/wakeup_ethernet.cpp: In constructor 'ethernet_wakeup::ethernet_wakeup(const char*, const char*)': wakeup/wakeup_ethernet.cpp:53:75: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4078 [-Wformat-truncation=] 53 | snprintf(toggle_enable, sizeof(toggle_enable), "echo 'enabled' > '%s';", eth_path); | ^~ wakeup/wakeup_ethernet.cpp:53:17: note: 'snprintf' output between 21 and 4116 bytes into a destination of size 4096 53 | snprintf(toggle_enable, sizeof(toggle_enable), "echo 'enabled' > '%s';", eth_path); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ wakeup/wakeup_ethernet.cpp:54:78: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4077 [-Wformat-truncation=] 54 | snprintf(toggle_disable, sizeof(toggle_disable), "echo 'disabled' > '%s';", eth_path); | ^~ wakeup/wakeup_ethernet.cpp:54:17: note: 'snprintf' output between 22 and 4117 bytes into a destination of size 4096 54 | snprintf(toggle_disable, sizeof(toggle_disable), "echo 'disabled' > '%s';", eth_path); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ devices/usb.cpp: In function 'void create_all_usb_devices_callback(const char*)': devices/usb.cpp:226:55: warning: '/power/active_duration' directive output may be truncated writing 22 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] 226 | snprintf(device_name, sizeof(device_name), "%s/power/active_duration", filename); | ^~~~~~~~~~~~~~~~~~~~~~ devices/usb.cpp:226:17: note: 'snprintf' output between 23 and 4118 bytes into a destination of size 4096 226 | snprintf(device_name, sizeof(device_name), "%s/power/active_duration", filename); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ devices/usb.cpp:230:55: warning: '/idVendor' directive output may be truncated writing 9 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] 230 | snprintf(device_name, sizeof(device_name), "%s/idVendor", filename); | ^~~~~~~~~ devices/usb.cpp:230:17: note: 'snprintf' output between 10 and 4105 bytes into a destination of size 4096 230 | snprintf(device_name, sizeof(device_name), "%s/idVendor", filename); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ devices/usb.cpp:235:55: warning: '/idProduct' directive output may be truncated writing 10 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] 235 | snprintf(device_name, sizeof(device_name), "%s/idProduct", filename); | ^~~~~~~~~~ devices/usb.cpp:235:17: note: 'snprintf' output between 11 and 4106 bytes into a destination of size 4096 235 | snprintf(device_name, sizeof(device_name), "%s/idProduct", filename); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ devices/device.cpp: In member function 'void device::register_sysfs_path(const char*)': devices/device.cpp:75:59: warning: '/device' directive output may be truncated writing 7 bytes into a region of size between 1 and 4097 [-Wformat-truncation=] 75 | snprintf(test_path, sizeof(test_path), "%s/device", current_path); | ^~~~~~~ devices/device.cpp:75:25: note: 'snprintf' output between 8 and 4104 bytes into a destination of size 4097 75 | snprintf(test_path, sizeof(test_path), "%s/device", current_path); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ devices/ahci.cpp: In member function 'virtual void ahci::start_measurement()': devices/ahci.cpp:164:49: warning: '/ahci_alpm_active' directive output may be truncated writing 17 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] 164 | snprintf(filename, sizeof(filename), "%s/ahci_alpm_active", sysfs_path); | ^~~~~~~~~~~~~~~~~ devices/ahci.cpp:164:17: note: 'snprintf' output between 18 and 4113 bytes into a destination of size 4096 164 | snprintf(filename, sizeof(filename), "%s/ahci_alpm_active", sysfs_path); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ devices/ahci.cpp:171:57: warning: '/ahci_alpm_partial' directive output may be truncated writing 18 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] 171 | snprintf(filename, sizeof(filename), "%s/ahci_alpm_partial", sysfs_path); | ^~~~~~~~~~~~~~~~~~ devices/ahci.cpp:171:25: note: 'snprintf' output between 19 and 4114 bytes into a destination of size 4096 171 | snprintf(filename, sizeof(filename), "%s/ahci_alpm_partial", sysfs_path); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ devices/ahci.cpp:178:57: warning: '/ahci_alpm_slumber' directive output may be truncated writing 18 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] 178 | snprintf(filename, sizeof(filename), "%s/ahci_alpm_slumber", sysfs_path); | ^~~~~~~~~~~~~~~~~~ devices/ahci.cpp:178:25: note: 'snprintf' output between 19 and 4114 bytes into a destination of size 4096 178 | snprintf(filename, sizeof(filename), "%s/ahci_alpm_slumber", sysfs_path); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ devices/ahci.cpp:184:57: warning: '/ahci_alpm_devslp' directive output may be truncated writing 17 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] 184 | snprintf(filename, sizeof(filename), "%s/ahci_alpm_devslp", sysfs_path); | ^~~~~~~~~~~~~~~~~ devices/ahci.cpp:184:25: note: 'snprintf' output between 18 and 4113 bytes into a destination of size 4096 184 | snprintf(filename, sizeof(filename), "%s/ahci_alpm_devslp", sysfs_path); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tuning/runtime.cpp: In function 'void add_runtime_tunables(const char*)': tuning/runtime.cpp:166:86: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size between 3822 and 4077 [-Wformat-truncation=] 166 | snprintf(filename, sizeof(filename), "/sys/bus/%s/devices/%s/%s/power/control", bus, entry->d_name, port); | ^~ ~~~~ tuning/runtime.cpp:166:33: note: 'snprintf' output 34 or more bytes (assuming 4384) into a destination of size 4096 166 | snprintf(filename, sizeof(filename), "/sys/bus/%s/devices/%s/%s/power/control", bus, entry->d_name, port); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tuning/runtime.cpp:171:86: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size between 3822 and 4077 [-Wformat-truncation=] 171 | snprintf(filename, sizeof(filename), "/sys/bus/%s/devices/%s/%s", bus, entry->d_name, port); | ^~ ~~~~ tuning/runtime.cpp:171:33: note: 'snprintf' output 20 or more bytes (assuming 4370) into a destination of size 4096 171 | snprintf(filename, sizeof(filename), "/sys/bus/%s/devices/%s/%s", bus, entry->d_name, port); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tuning/runtime.cpp:191:74: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4085 [-Wformat-truncation=] 191 | snprintf(filename, sizeof(filename), "/sys/block/%s/device", port); | ^~ ~~~~ tuning/runtime.cpp:191:33: note: 'snprintf' output between 19 and 4114 bytes into a destination of size 4096 191 | snprintf(filename, sizeof(filename), "/sys/block/%s/device", port); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ devices/ahci.cpp: In member function 'virtual void ahci::end_measurement()': devices/ahci.cpp:206:57: warning: '/ahci_alpm_active' directive output may be truncated writing 17 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] 206 | snprintf(filename, sizeof(filename), "%s/ahci_alpm_active", sysfs_path); | ^~~~~~~~~~~~~~~~~ devices/ahci.cpp:206:25: note: 'snprintf' output between 18 and 4113 bytes into a destination of size 4096 206 | snprintf(filename, sizeof(filename), "%s/ahci_alpm_active", sysfs_path); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ devices/ahci.cpp:212:57: warning: '/ahci_alpm_partial' directive output may be truncated writing 18 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] 212 | snprintf(filename, sizeof(filename), "%s/ahci_alpm_partial", sysfs_path); | ^~~~~~~~~~~~~~~~~~ devices/ahci.cpp:212:25: note: 'snprintf' output between 19 and 4114 bytes into a destination of size 4096 212 | snprintf(filename, sizeof(filename), "%s/ahci_alpm_partial", sysfs_path); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ devices/ahci.cpp:218:57: warning: '/ahci_alpm_slumber' directive output may be truncated writing 18 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] 218 | snprintf(filename, sizeof(filename), "%s/ahci_alpm_slumber", sysfs_path); | ^~~~~~~~~~~~~~~~~~ devices/ahci.cpp:218:25: note: 'snprintf' output between 19 and 4114 bytes into a destination of size 4096 218 | snprintf(filename, sizeof(filename), "%s/ahci_alpm_slumber", sysfs_path); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ devices/ahci.cpp:224:57: warning: '/ahci_alpm_devslp' directive output may be truncated writing 17 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] 224 | snprintf(filename, sizeof(filename), "%s/ahci_alpm_devslp", sysfs_path); | ^~~~~~~~~~~~~~~~~ devices/ahci.cpp:224:25: note: 'snprintf' output between 18 and 4113 bytes into a destination of size 4096 224 | snprintf(filename, sizeof(filename), "%s/ahci_alpm_devslp", sysfs_path); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ devices/ahci.cpp:248:51: warning: '-active' directive output may be truncated writing 7 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] 248 | snprintf(powername, sizeof(powername), "%s-active", name); | ^~~~~~~ devices/ahci.cpp:248:17: note: 'snprintf' output between 8 and 4103 bytes into a destination of size 4096 248 | snprintf(powername, sizeof(powername), "%s-active", name); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ devices/ahci.cpp:255:51: warning: '-partial' directive output may be truncated writing 8 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] 255 | snprintf(powername, sizeof(powername), "%s-partial", name); | ^~~~~~~~ devices/ahci.cpp:255:17: note: 'snprintf' output between 9 and 4104 bytes into a destination of size 4096 255 | snprintf(powername, sizeof(powername), "%s-partial", name); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ devices/ahci.cpp:262:51: warning: '-slumber' directive output may be truncated writing 8 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] 262 | snprintf(powername, sizeof(powername), "%s-slumber", name); | ^~~~~~~~ devices/ahci.cpp:262:17: note: 'snprintf' output between 9 and 4104 bytes into a destination of size 4096 262 | snprintf(powername, sizeof(powername), "%s-slumber", name); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ devices/ahci.cpp:269:51: warning: '-devslp' directive output may be truncated writing 7 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] 269 | snprintf(powername, sizeof(powername), "%s-devslp", name); | ^~~~~~~ devices/ahci.cpp:269:17: note: 'snprintf' output between 8 and 4103 bytes into a destination of size 4096 269 | snprintf(powername, sizeof(powername), "%s-devslp", name); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ wakeup/wakeup_usb.cpp: In constructor 'usb_wakeup::usb_wakeup(const char*, const char*)': wakeup/wakeup_usb.cpp:53:75: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4078 [-Wformat-truncation=] 53 | snprintf(toggle_enable, sizeof(toggle_enable), "echo 'enabled' > '%s';", usb_path); | ^~ wakeup/wakeup_usb.cpp:53:17: note: 'snprintf' output between 21 and 4116 bytes into a destination of size 4096 53 | snprintf(toggle_enable, sizeof(toggle_enable), "echo 'enabled' > '%s';", usb_path); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ wakeup/wakeup_usb.cpp:54:78: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4077 [-Wformat-truncation=] 54 | snprintf(toggle_disable, sizeof(toggle_disable), "echo 'disabled' > '%s';", usb_path); | ^~ wakeup/wakeup_usb.cpp:54:17: note: 'snprintf' output between 22 and 4117 bytes into a destination of size 4096 54 | snprintf(toggle_disable, sizeof(toggle_disable), "echo 'disabled' > '%s';", usb_path); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ devices/ahci.cpp: In constructor 'ahci::ahci(char*, char*)': devices/ahci.cpp:139:45: warning: '-active' directive output may be truncated writing 7 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] 139 | snprintf(buffer, sizeof(buffer), "%s-active", name); | ^~~~~~~ devices/ahci.cpp:139:17: note: 'snprintf' output between 8 and 4103 bytes into a destination of size 4096 139 | snprintf(buffer, sizeof(buffer), "%s-active", name); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ devices/ahci.cpp:142:45: warning: '-partial' directive output may be truncated writing 8 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] 142 | snprintf(buffer, sizeof(buffer), "%s-partial", name); | ^~~~~~~~ devices/ahci.cpp:142:17: note: 'snprintf' output between 9 and 4104 bytes into a destination of size 4096 142 | snprintf(buffer, sizeof(buffer), "%s-partial", name); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ devices/ahci.cpp:145:45: warning: '-slumber' directive output may be truncated writing 8 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] 145 | snprintf(buffer, sizeof(buffer), "%s-slumber", name); | ^~~~~~~~ devices/ahci.cpp:145:17: note: 'snprintf' output between 9 and 4104 bytes into a destination of size 4096 145 | snprintf(buffer, sizeof(buffer), "%s-slumber", name); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ devices/ahci.cpp:148:45: warning: '-devslp' directive output may be truncated writing 7 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] 148 | snprintf(buffer, sizeof(buffer), "%s-devslp", name); | ^~~~~~~ devices/ahci.cpp:148:17: note: 'snprintf' output between 8 and 4103 bytes into a destination of size 4096 148 | snprintf(buffer, sizeof(buffer), "%s-devslp", name); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ devices/ahci.cpp:54:50: warning: '%s' directive output may be truncated writing up to 255 bytes into a region of size between 0 and 4095 [-Wformat-truncation=] 54 | snprintf(pathname, sizeof(pathname), "%s/%s", path, target); | ^~ In function 'std::string disk_name(char*, char*, char*)', inlined from 'std::string model_name(char*, char*)' at devices/ahci.cpp:109:55, inlined from 'ahci::ahci(char*, char*)' at devices/ahci.cpp:151:23: devices/ahci.cpp:54:17: note: 'snprintf' output between 2 and 4352 bytes into a destination of size 4096 54 | snprintf(pathname, sizeof(pathname), "%s/%s", path, target); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ devices/ahci.cpp: In constructor 'ahci::ahci(char*, char*)': devices/ahci.cpp:68:50: warning: '%s' directive output may be truncated writing up to 255 bytes into a region of size between 0 and 4095 [-Wformat-truncation=] 68 | snprintf(line, sizeof(line), "%s/%s/model", pathname, dirent->d_name); | ^~ In function 'std::string disk_name(char*, char*, char*)', inlined from 'std::string model_name(char*, char*)' at devices/ahci.cpp:109:55, inlined from 'ahci::ahci(char*, char*)' at devices/ahci.cpp:151:23: devices/ahci.cpp:68:25: note: 'snprintf' output between 8 and 4358 bytes into a destination of size 4096 68 | snprintf(line, sizeof(line), "%s/%s/model", pathname, dirent->d_name); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CXXLD powertop make[3]: Leaving directory '/home/buildozer/aports/main/powertop/src/powertop-2.15/src' make[2]: Leaving directory '/home/buildozer/aports/main/powertop/src/powertop-2.15/src' Making all in po make[2]: Entering directory '/home/buildozer/aports/main/powertop/src/powertop-2.15/po' make[2]: Nothing to be done for 'all'. make[2]: Leaving directory '/home/buildozer/aports/main/powertop/src/powertop-2.15/po' Making all in doc make[2]: Entering directory '/home/buildozer/aports/main/powertop/src/powertop-2.15/doc' make[2]: Nothing to be done for 'all'. make[2]: Leaving directory '/home/buildozer/aports/main/powertop/src/powertop-2.15/doc' Making all in scripts/bash-completion make[2]: Entering directory '/home/buildozer/aports/main/powertop/src/powertop-2.15/scripts/bash-completion' make[2]: Nothing to be done for 'all'. make[2]: Leaving directory '/home/buildozer/aports/main/powertop/src/powertop-2.15/scripts/bash-completion' make[2]: Entering directory '/home/buildozer/aports/main/powertop/src/powertop-2.15' make[2]: Leaving directory '/home/buildozer/aports/main/powertop/src/powertop-2.15' make[1]: Leaving directory '/home/buildozer/aports/main/powertop/src/powertop-2.15' >>> powertop: Entering fakeroot... Making install in traceevent make[1]: Entering directory '/home/buildozer/aports/main/powertop/src/powertop-2.15/traceevent' make[2]: Entering directory '/home/buildozer/aports/main/powertop/src/powertop-2.15/traceevent' make[2]: Nothing to be done for 'install-exec-am'. make[2]: Nothing to be done for 'install-data-am'. make[2]: Leaving directory '/home/buildozer/aports/main/powertop/src/powertop-2.15/traceevent' make[1]: Leaving directory '/home/buildozer/aports/main/powertop/src/powertop-2.15/traceevent' Making install in src make[1]: Entering directory '/home/buildozer/aports/main/powertop/src/powertop-2.15/src' make install-am make[2]: Entering directory '/home/buildozer/aports/main/powertop/src/powertop-2.15/src' make[3]: Entering directory '/home/buildozer/aports/main/powertop/src/powertop-2.15/src' make[3]: Nothing to be done for 'install-data-am'. /bin/mkdir -p '/home/buildozer/aports/main/powertop/pkg/powertop/usr/sbin' /bin/sh ../libtool --mode=install /usr/bin/install -c powertop '/home/buildozer/aports/main/powertop/pkg/powertop/usr/sbin' libtool: install: /usr/bin/install -c powertop /home/buildozer/aports/main/powertop/pkg/powertop/usr/sbin/powertop make[3]: Leaving directory '/home/buildozer/aports/main/powertop/src/powertop-2.15/src' make[2]: Leaving directory '/home/buildozer/aports/main/powertop/src/powertop-2.15/src' make[1]: Leaving directory '/home/buildozer/aports/main/powertop/src/powertop-2.15/src' Making install in po make[1]: Entering directory '/home/buildozer/aports/main/powertop/src/powertop-2.15/po' if test "powertop" = "gettext-tools"; then \ /bin/mkdir -p /home/buildozer/aports/main/powertop/pkg/powertop/usr/share/gettext/po; \ for file in Makefile.in.in remove-potcdate.sin quot.sed boldquot.sed en@quot.header en@boldquot.header insert-header.sin Rules-quot Makevars.template; do \ /usr/bin/install -c -m 644 ./$file \ /home/buildozer/aports/main/powertop/pkg/powertop/usr/share/gettext/po/$file; \ done; \ for file in Makevars; do \ rm -f /home/buildozer/aports/main/powertop/pkg/powertop/usr/share/gettext/po/$file; \ done; \ else \ : ; \ fi make[1]: Leaving directory '/home/buildozer/aports/main/powertop/src/powertop-2.15/po' Making install in doc make[1]: Entering directory '/home/buildozer/aports/main/powertop/src/powertop-2.15/doc' make[2]: Entering directory '/home/buildozer/aports/main/powertop/src/powertop-2.15/doc' make[2]: Nothing to be done for 'install-exec-am'. /bin/mkdir -p '/home/buildozer/aports/main/powertop/pkg/powertop/usr/share/man/man8' /usr/bin/install -c -m 644 powertop.8 '/home/buildozer/aports/main/powertop/pkg/powertop/usr/share/man/man8' make[2]: Leaving directory '/home/buildozer/aports/main/powertop/src/powertop-2.15/doc' make[1]: Leaving directory '/home/buildozer/aports/main/powertop/src/powertop-2.15/doc' Making install in scripts/bash-completion make[1]: Entering directory '/home/buildozer/aports/main/powertop/src/powertop-2.15/scripts/bash-completion' make[2]: Entering directory '/home/buildozer/aports/main/powertop/src/powertop-2.15/scripts/bash-completion' make[2]: Nothing to be done for 'install-exec-am'. /bin/mkdir -p '/home/buildozer/aports/main/powertop/pkg/powertop/usr/share/bash-completion/completions' /usr/bin/install -c -m 644 powertop '/home/buildozer/aports/main/powertop/pkg/powertop/usr/share/bash-completion/completions' make[2]: Leaving directory '/home/buildozer/aports/main/powertop/src/powertop-2.15/scripts/bash-completion' make[1]: Leaving directory '/home/buildozer/aports/main/powertop/src/powertop-2.15/scripts/bash-completion' make[1]: Entering directory '/home/buildozer/aports/main/powertop/src/powertop-2.15' make[2]: Entering directory '/home/buildozer/aports/main/powertop/src/powertop-2.15' make[2]: Nothing to be done for 'install-exec-am'. make[2]: Nothing to be done for 'install-data-am'. make[2]: Leaving directory '/home/buildozer/aports/main/powertop/src/powertop-2.15' make[1]: Leaving directory '/home/buildozer/aports/main/powertop/src/powertop-2.15' >>> powertop-doc*: Running split function doc... >>> powertop-doc*: Preparing subpackage powertop-doc... >>> powertop-doc*: Running postcheck for powertop-doc >>> powertop-bash-completion*: Running split function bashcomp... '/home/buildozer/aports/main/powertop/pkg/powertop/usr/share/bash-completion/completions' -> '/home/buildozer/aports/main/powertop/pkg/powertop-bash-completion/usr/share/bash-completion/completions' >>> powertop-bash-completion*: Preparing subpackage powertop-bash-completion... >>> powertop-bash-completion*: Running postcheck for powertop-bash-completion >>> powertop*: Running postcheck for powertop >>> powertop*: Preparing package powertop... >>> powertop*: Stripping binaries >>> powertop-bash-completion*: Scanning shared objects >>> powertop-doc*: Scanning shared objects >>> powertop*: Scanning shared objects >>> powertop-bash-completion*: Tracing dependencies... >>> powertop-bash-completion*: Package size: 24.0 KB >>> powertop-bash-completion*: Compressing data... >>> powertop-bash-completion*: Create checksum... >>> powertop-bash-completion*: Create powertop-bash-completion-2.15-r5.apk >>> powertop-doc*: Tracing dependencies... >>> powertop-doc*: Package size: 24.0 KB >>> powertop-doc*: Compressing data... >>> powertop-doc*: Create checksum... >>> powertop-doc*: Create powertop-doc-2.15-r5.apk >>> powertop*: Tracing dependencies... so:libc.musl-ppc64le.so.1 so:libgcc_s.so.1 so:libncursesw.so.6 so:libnl-3.so.200 so:libnl-genl-3.so.200 so:libpci.so.3 so:libstdc++.so.6 >>> powertop*: Package size: 464.0 KB >>> powertop*: Compressing data... >>> powertop*: Create checksum... >>> powertop*: Create powertop-2.15-r5.apk >>> powertop: Build complete at Mon, 27 May 2024 08:24:08 +0000 elapsed time 0h 0m 42s >>> powertop: Cleaning up srcdir >>> powertop: Cleaning up pkgdir >>> powertop: Uninstalling dependencies... (1/31) Purging .makedepends-powertop (20240527.082327) (2/31) Purging autoconf-archive (2023.02.20-r0) (3/31) Purging autoconf (2.72-r0) (4/31) Purging m4 (1.4.19-r3) (5/31) Purging automake (1.16.5-r2) (6/31) Purging gettext-dev (0.22.5-r0) (7/31) Purging gettext-asprintf (0.22.5-r0) (8/31) Purging gettext (0.22.5-r0) (9/31) Purging gettext-envsubst (0.22.5-r0) (10/31) Purging libnl3-dev (3.9.0-r1) (11/31) Purging libnl3-cli (3.9.0-r1) (12/31) Purging libnl3 (3.9.0-r1) (13/31) Purging libtool (2.4.7-r3) (14/31) Purging libltdl (2.4.7-r3) (15/31) Purging linux-headers (6.6-r0) (16/31) Purging ncurses-dev (6.4_p20240420-r0) (17/31) Purging libncurses++ (6.4_p20240420-r0) (18/31) Purging libpanelw (6.4_p20240420-r0) (19/31) Purging pciutils-dev (3.12.0-r1) (20/31) Purging pciutils-libs (3.12.0-r1) (21/31) Purging xz (5.6.1-r3) (22/31) Purging zlib-dev (1.3.1-r1) (23/31) Purging gettext-libs (0.22.5-r0) (24/31) Purging git-perl (2.45.1-r0) (25/31) Purging perl-git (2.45.1-r0) (26/31) Purging perl-error (0.17029-r2) (27/31) Purging perl (5.38.2-r0) (28/31) Purging libformw (6.4_p20240420-r0) (29/31) Purging libintl (0.22.5-r0) (30/31) Purging libmenuw (6.4_p20240420-r0) (31/31) Purging libxml2 (2.12.7-r0) Executing busybox-1.36.1-r28.trigger OK: 264 MiB in 110 packages >>> powertop: Updating the main/ppc64le repository index... >>> powertop: Signing the index...