From https://github.com/archlinux/svntogit-community * branch packages/powertop -> FETCH_HEAD * [new branch] packages/powertop -> community/packages/powertop Cloning into 'powertop'... done. :: Synchronizing package databases... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 130k 100 130k 0 0 383k 0 --:--:-- --:--:-- --:--:-- 383k % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 8544k 100 8544k 0 0 20.8M 0 --:--:-- --:--:-- --:--:-- 20.9M % 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 100 142k 100 142k 0 0 425k 0 --:--:-- --:--:-- --:--:-- 425k :: Starting full system upgrade... resolving dependencies... looking for conflicting packages... Packages (1) gmp-6.3.0-1 Total Download Size: 0.43 MiB Total Installed Size: 1.01 MiB Net Upgrade Size: 0.02 MiB :: Proceed with installation? [Y/n] :: Retrieving packages... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 443k 100 443k 0 0 170M 0 --:--:-- --:--:-- --:--:-- 216M checking keyring... checking package integrity... loading package files... checking for file conflicts... checking available disk space... :: Processing package changes... upgrading gmp... :: Running post-transaction hooks... (1/2) Arming ConditionNeedsUpdate... (2/2) Updating the info directory file... ==> Making package: powertop 2.15-1 (Fri Aug 4 09:38:48 2023) ==> Checking runtime dependencies... ==> Checking buildtime dependencies... ==> Installing missing dependencies... resolving dependencies... looking for conflicting packages... Packages (1) autoconf-archive-1:2023.02.20-1 Total Download Size: 0.54 MiB Total Installed Size: 2.26 MiB :: Proceed with installation? [Y/n] :: Retrieving packages... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 555k 100 555k 0 0 140M 0 --:--:-- --:--:-- --:--:-- 180M checking keyring... checking package integrity... loading package files... checking for file conflicts... checking available disk space... :: Processing package changes... installing autoconf-archive... Optional dependencies for autoconf-archive automake: macros for use with it [installed] :: Running post-transaction hooks... (1/2) Arming ConditionNeedsUpdate... (2/2) Updating the info directory file... ==> Retrieving sources... -> Downloading powertop-2.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 100 2055 0 2055 0 0 10457 0 --:--:-- --:--:-- --:--:-- 10457 100 295k 0 295k 0 0 1224k 0 --:--:-- --:--:-- --:--:-- 6528k ==> Validating source files with sha256sums... powertop-2.15.tar.gz ... Passed ==> Extracting sources... -> Extracting powertop-2.15.tar.gz with bsdtar ==> Starting build()... 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... /usr/sbin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking whether make supports the include directive... yes (GNU style) checking for g++... g++ 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... yes checking for msgfmt... /usr/sbin/msgfmt checking for gmsgfmt... /usr/sbin/msgfmt checking for xgettext... /usr/sbin/xgettext checking for msgmerge... /usr/sbin/msgmerge checking for 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... x86_64-pc-linux-gnu checking host system type... x86_64-pc-linux-gnu checking for ld used by gcc... /usr/sbin/ld checking if the linker (/usr/sbin/ld) is GNU ld... yes checking for shared library run path origin... done checking how to run the C++ preprocessor... g++ -E checking for grep that handles long lines and -e... /usr/sbin/grep checking for egrep... /usr/sbin/grep -E checking for CFPreferencesCopyAppValue... no checking for CFLocaleCopyCurrent... no checking for GNU gettext in libc... yes checking whether to use NLS... yes checking where the gettext function comes from... libc 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... /usr/sbin/sed checking for fgrep... /usr/sbin/grep -F checking for ld used by gcc... /usr/sbin/ld checking if the linker (/usr/sbin/ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /usr/sbin/nm -B checking the name lister (/usr/sbin/nm -B) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 1572864 checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop checking for /usr/sbin/ld option to reload object files... -r checking for file... file checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for dlltool... no checking how to associate runtime and link libraries... printf %s\n checking for archiver @FILE support... @ checking for strip... strip checking for ranlib... ranlib checking command to parse /usr/sbin/nm -B output from gcc object... ok checking for sysroot... no checking for a working dd... /usr/sbin/dd checking how to truncate binary pipes... /usr/sbin/dd bs=4096 count=1 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... yes 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/sbin/ld -m elf_x86_64) 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/sbin/ld -m elf_x86_64 checking if the linker (/usr/sbin/ld -m elf_x86_64) is GNU ld... yes checking whether the g++ linker (/usr/sbin/ld -m elf_x86_64) 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... yes 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/sbin/ld -m elf_x86_64) supports shared libraries... yes checking dynamic linker characteristics... (cached) GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking for 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 pkg-config... /usr/sbin/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... 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 *... yes 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 NCURSES... yes checking for PCIUTILS... yes checking for LIBNL... 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 '/tmp/archlinux-ci/powertop-archlinuxrb-build-S29uPWyr/powertop/trunk/src/powertop-2.15' Making all in traceevent make[2]: Entering directory '/tmp/archlinux-ci/powertop-archlinuxrb-build-S29uPWyr/powertop/trunk/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 '/tmp/archlinux-ci/powertop-archlinuxrb-build-S29uPWyr/powertop/trunk/src/powertop-2.15/traceevent' Making all in src make[2]: Entering directory '/tmp/archlinux-ci/powertop-archlinuxrb-build-S29uPWyr/powertop/trunk/src/powertop-2.15/src' /bin/sh ./csstoh.sh ./powertop.css css.h make all-am make[3]: Entering directory '/tmp/archlinux-ci/powertop-archlinuxrb-build-S29uPWyr/powertop/trunk/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 In file included from cpu/cpudevice.cpp:29: cpu/../lib.h: In constructor 'cpudevice::cpudevice(const char*, const char*, abstract_cpu*)': cpu/../lib.h:78:16: warning: 'char* __builtin_strncpy(char*, const char*, long unsigned int)' specified bound 128 equals destination size [-Wstringop-truncation] 78 | strncpy(d, s, N); | ^ cpu/../lib.h:78:16: warning: 'char* __builtin_strncpy(char*, const char*, long unsigned int)' specified bound 128 equals destination size [-Wstringop-truncation] 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 In file included from cpu/abstract_cpu.cpp:32: cpu/../lib.h: In member function 'void abstract_cpu::insert_cstate(const char*, const char*, uint64_t, uint64_t, int, int)': cpu/../lib.h:78:16: warning: 'char* __builtin_strncpy(char*, const char*, long unsigned int)' specified bound 32 equals destination size [-Wstringop-truncation] 78 | strncpy(d, s, N); | ^ CXX devices/powertop-network.o CXX devices/powertop-rfkill.o CXX devices/powertop-runtime_pm.o 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); | ^~ In file included from /usr/include/stdio.h:964, from /usr/include/c++/13.2.1/cstdio:42, from /usr/include/c++/13.2.1/ext/string_conversions.h:45, from /usr/include/c++/13.2.1/bits/basic_string.h:4097, from /usr/include/c++/13.2.1/string:54, from /usr/include/c++/13.2.1/bits/locale_classes.h:40, from /usr/include/c++/13.2.1/bits/ios_base.h:41, from /usr/include/c++/13.2.1/ios:44, from /usr/include/c++/13.2.1/ostream:40, from /usr/include/c++/13.2.1/iostream:41, from devices/alsa.cpp:25: In function 'int snprintf(char*, size_t, const char*, ...)', inlined from 'virtual const char* alsa::human_name()' at devices/alsa.cpp:205:11: /usr/include/bits/stdio2.h:54:35: note: '__builtin___snprintf_chk' output between 4 and 8194 bytes into a destination of size 4096 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ In file included from devices/../parameters/parameters.h:35, from devices/alsa.h:30, from devices/alsa.cpp:35: devices/../parameters/../lib.h: In constructor 'alsa::alsa(const char*, const char*)': devices/../parameters/../lib.h:78:16: warning: 'char* __builtin_strncpy(char*, const char*, long unsigned int)' specified bound 4096 equals destination size [-Wstringop-truncation] 78 | strncpy(d, s, N); | ^ 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); | ^~~~~~ In file included from /usr/include/stdio.h:964, from /usr/include/c++/13.2.1/cstdio:42, from /usr/include/c++/13.2.1/ext/string_conversions.h:45, from /usr/include/c++/13.2.1/bits/basic_string.h:4097, from /usr/include/c++/13.2.1/string:54, from /usr/include/c++/13.2.1/bits/locale_classes.h:40, from /usr/include/c++/13.2.1/bits/ios_base.h:41, from /usr/include/c++/13.2.1/ios:44, from /usr/include/c++/13.2.1/ostream:40, from /usr/include/c++/13.2.1/iostream:41, from devices/backlight.cpp:25: In function 'int sprintf(char*, const char*, ...)', inlined from 'virtual double backlight::power_usage(result_bundle*, parameter_bundle*)' at devices/backlight.cpp:217:10: /usr/include/bits/stdio2.h:30:34: note: '__builtin___sprintf_chk' output between 7 and 4102 bytes into a destination of size 4096 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ 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); | ^~~~~~~~~~~~~~~ In function 'int snprintf(char*, size_t, const char*, ...)', inlined from 'virtual void alsa::start_measurement()' at devices/alsa.cpp:89:10: /usr/include/bits/stdio2.h:54:35: note: '__builtin___snprintf_chk' output between 16 and 4111 bytes into a destination of size 4096 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ devices/alsa.cpp: In member function 'virtual void alsa::start_measurement()': 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); | ^~~~~~~~~~~~~~ In function 'int snprintf(char*, size_t, const char*, ...)', inlined from 'virtual void alsa::start_measurement()' at devices/alsa.cpp:96:11: /usr/include/bits/stdio2.h:54:35: note: '__builtin___snprintf_chk' output between 15 and 4110 bytes into a destination of size 4096 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ In file included from devices/../parameters/parameters.h:35, from devices/backlight.cpp:38: devices/../parameters/../lib.h: In constructor 'backlight::backlight(const char*, const char*)': devices/../parameters/../lib.h:78:16: warning: 'char* __builtin_strncpy(char*, const char*, long unsigned int)' specified bound 4096 equals destination size [-Wstringop-truncation] 78 | strncpy(d, s, N); | ^ CXX devices/powertop-thinkpad-fan.o CXX devices/powertop-thinkpad-light.o In file included from devices/../parameters/parameters.h:35, from devices/devfreq.h:29, from devices/devfreq.cpp:35: devices/../parameters/../lib.h: In constructor 'devfreq::devfreq(const char*)': devices/../parameters/../lib.h:78:16: warning: 'char* __builtin_strncpy(char*, const char*, long unsigned int)' specified bound 128 equals destination size [-Wstringop-truncation] 78 | strncpy(d, s, N); | ^ 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); | ^~~~~~~~~~~~~~~ In function 'int snprintf(char*, size_t, const char*, ...)', inlined from 'virtual void alsa::end_measurement()' at devices/alsa.cpp:115:10: /usr/include/bits/stdio2.h:54:35: note: '__builtin___snprintf_chk' output between 16 and 4111 bytes into a destination of size 4096 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ devices/alsa.cpp: In member function 'virtual void alsa::end_measurement()': 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); | ^~~~~~~~~~~~~~ In function 'int snprintf(char*, size_t, const char*, ...)', inlined from 'virtual void alsa::end_measurement()' at devices/alsa.cpp:122:11: /usr/include/bits/stdio2.h:54:35: note: '__builtin___snprintf_chk' output between 15 and 4110 bytes into a destination of size 4096 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ 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); | ^~~~~~~~~~~~~~~~~~ In function 'int snprintf(char*, size_t, const char*, ...)', inlined from 'virtual void backlight::end_measurement()' at devices/backlight.cpp:125:10: /usr/include/bits/stdio2.h:54:35: note: '__builtin___snprintf_chk' output between 19 and 4114 bytes into a destination of size 4096 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ devices/backlight.cpp: In member function 'virtual void backlight::end_measurement()': 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); | ^~~~~~ In function 'int snprintf(char*, size_t, const char*, ...)', inlined from 'virtual void backlight::end_measurement()' at devices/backlight.cpp:140:10: /usr/include/bits/stdio2.h:54:35: note: '__builtin___snprintf_chk' output between 7 and 4102 bytes into a destination of size 4096 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ 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); | ^~~~~~~~~~~~~~~~~ In file included from /usr/include/stdio.h:964, from /usr/include/c++/13.2.1/cstdio:42, from /usr/include/c++/13.2.1/ext/string_conversions.h:45, from /usr/include/c++/13.2.1/bits/basic_string.h:4097, from /usr/include/c++/13.2.1/string:54, from /usr/include/c++/13.2.1/bits/locale_classes.h:40, from /usr/include/c++/13.2.1/bits/ios_base.h:41, from /usr/include/c++/13.2.1/ios:44, from /usr/include/c++/13.2.1/ostream:40, from /usr/include/c++/13.2.1/iostream:41, from devices/ahci.cpp:25: In function 'int snprintf(char*, size_t, const char*, ...)', inlined from 'virtual void ahci::end_measurement()' at devices/ahci.cpp:206:11: /usr/include/bits/stdio2.h:54:35: note: '__builtin___snprintf_chk' output between 18 and 4113 bytes into a destination of size 4096 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ devices/ahci.cpp: In member function 'virtual void ahci::end_measurement()': 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); | ^~~~~~~~~~~~~~~~~~ In function 'int snprintf(char*, size_t, const char*, ...)', inlined from 'virtual void ahci::end_measurement()' at devices/ahci.cpp:212:11: /usr/include/bits/stdio2.h:54:35: note: '__builtin___snprintf_chk' output between 19 and 4114 bytes into a destination of size 4096 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ devices/ahci.cpp: In member function 'virtual void ahci::end_measurement()': 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); | ^~~~~~~~~~~~~~~~~~ In function 'int snprintf(char*, size_t, const char*, ...)', inlined from 'virtual void ahci::end_measurement()' at devices/ahci.cpp:218:11: /usr/include/bits/stdio2.h:54:35: note: '__builtin___snprintf_chk' output between 19 and 4114 bytes into a destination of size 4096 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ devices/ahci.cpp: In member function 'virtual void ahci::end_measurement()': 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); | ^~~~~~~~~~~~~~~~~ In function 'int snprintf(char*, size_t, const char*, ...)', inlined from 'virtual void ahci::end_measurement()' at devices/ahci.cpp:224:11: /usr/include/bits/stdio2.h:54:35: note: '__builtin___snprintf_chk' output between 18 and 4113 bytes into a destination of size 4096 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ devices/ahci.cpp: In member function 'virtual void ahci::end_measurement()': 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); | ^~~~~~~ In function 'int snprintf(char*, size_t, const char*, ...)', inlined from 'virtual void ahci::end_measurement()' at devices/ahci.cpp:248:10: /usr/include/bits/stdio2.h:54:35: note: '__builtin___snprintf_chk' output between 8 and 4103 bytes into a destination of size 4096 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ devices/ahci.cpp: In member function 'virtual void ahci::end_measurement()': 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); | ^~~~~~~~ In function 'int snprintf(char*, size_t, const char*, ...)', inlined from 'virtual void ahci::end_measurement()' at devices/ahci.cpp:255:10: /usr/include/bits/stdio2.h:54:35: note: '__builtin___snprintf_chk' output between 9 and 4104 bytes into a destination of size 4096 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ devices/ahci.cpp: In member function 'virtual void ahci::end_measurement()': 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); | ^~~~~~~~ In function 'int snprintf(char*, size_t, const char*, ...)', inlined from 'virtual void ahci::end_measurement()' at devices/ahci.cpp:262:10: /usr/include/bits/stdio2.h:54:35: note: '__builtin___snprintf_chk' output between 9 and 4104 bytes into a destination of size 4096 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ devices/ahci.cpp: In member function 'virtual void ahci::end_measurement()': 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); | ^~~~~~~ In function 'int snprintf(char*, size_t, const char*, ...)', inlined from 'virtual void ahci::end_measurement()' at devices/ahci.cpp:269:10: /usr/include/bits/stdio2.h:54:35: note: '__builtin___snprintf_chk' output between 8 and 4103 bytes into a destination of size 4096 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ CXX devices/powertop-usb.o CXX measurement/powertop-acpi.o 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); | ^~~~~~~~~~~~~~~ In function 'int snprintf(char*, size_t, const char*, ...)', inlined from 'virtual void backlight::start_measurement()' at devices/backlight.cpp:61:10: /usr/include/bits/stdio2.h:54:35: note: '__builtin___snprintf_chk' output between 16 and 4111 bytes into a destination of size 4096 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ devices/backlight.cpp: In member function 'virtual void backlight::start_measurement()': 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); | ^~~~~~~~~~~~~~~~~~ In function 'int snprintf(char*, size_t, const char*, ...)', inlined from 'virtual void backlight::start_measurement()' at devices/backlight.cpp:68:10: /usr/include/bits/stdio2.h:54:35: note: '__builtin___snprintf_chk' output between 19 and 4114 bytes into a destination of size 4096 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ 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); | ^~~~~~~~~~~~~~~~~ In function 'int snprintf(char*, size_t, const char*, ...)', inlined from 'virtual void ahci::start_measurement()' at devices/ahci.cpp:164:10: /usr/include/bits/stdio2.h:54:35: note: '__builtin___snprintf_chk' output between 18 and 4113 bytes into a destination of size 4096 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ devices/ahci.cpp: In member function 'virtual void ahci::start_measurement()': 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); | ^~~~~~~~~~~~~~~~~~ In function 'int snprintf(char*, size_t, const char*, ...)', inlined from 'virtual void ahci::start_measurement()' at devices/ahci.cpp:171:11: /usr/include/bits/stdio2.h:54:35: note: '__builtin___snprintf_chk' output between 19 and 4114 bytes into a destination of size 4096 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ devices/ahci.cpp: In member function 'virtual void ahci::start_measurement()': 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); | ^~~~~~~~~~~~~~~~~~ In function 'int snprintf(char*, size_t, const char*, ...)', inlined from 'virtual void ahci::start_measurement()' at devices/ahci.cpp:178:11: /usr/include/bits/stdio2.h:54:35: note: '__builtin___snprintf_chk' output between 19 and 4114 bytes into a destination of size 4096 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ devices/ahci.cpp: In member function 'virtual void ahci::start_measurement()': 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); | ^~~~~~~~~~~~~~~~~ In function 'int snprintf(char*, size_t, const char*, ...)', inlined from 'virtual void ahci::start_measurement()' at devices/ahci.cpp:184:11: /usr/include/bits/stdio2.h:54:35: note: '__builtin___snprintf_chk' output between 18 and 4113 bytes into a destination of size 4096 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ CXX measurement/powertop-extech.o CXX measurement/powertop-measurement.o CXX measurement/powertop-sysfs.o 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); | ^~~~~~~ In file included from /usr/include/stdio.h:964, from devices/device.cpp:29: In function 'int snprintf(char*, size_t, const char*, ...)', inlined from 'void device::register_sysfs_path(const char*)' at devices/device.cpp:75:11: /usr/include/bits/stdio2.h:54:35: note: '__builtin___snprintf_chk' output between 8 and 4104 bytes into a destination of size 4097 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ devices/../parameters/../lib.h: In function 'void devfreq_dev_callback(const char*)': devices/../parameters/../lib.h:78:16: warning: 'char* __builtin_strncpy(char*, const char*, long unsigned int)' specified bound 128 equals destination size [-Wstringop-truncation] CXX measurement/powertop-opal-sensors.o In file included from devices/../parameters/parameters.h:35, from devices/ahci.h:32, from devices/ahci.cpp:39: devices/../parameters/../lib.h: In constructor 'ahci::ahci(char*, char*)': devices/../parameters/../lib.h:78:16: warning: 'char* __builtin_strncpy(char*, const char*, long unsigned int)' specified bound 4096 equals destination size [-Wstringop-truncation] 78 | strncpy(d, s, N); | ^ 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); | ^~~~~~~ In function 'int snprintf(char*, size_t, const char*, ...)', inlined from 'ahci::ahci(char*, char*)' at devices/ahci.cpp:139:10: /usr/include/bits/stdio2.h:54:35: note: '__builtin___snprintf_chk' output between 8 and 4103 bytes into a destination of size 4096 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ devices/ahci.cpp: In constructor 'ahci::ahci(char*, char*)': 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); | ^~~~~~~~ In function 'int snprintf(char*, size_t, const char*, ...)', inlined from 'ahci::ahci(char*, char*)' at devices/ahci.cpp:142:10: /usr/include/bits/stdio2.h:54:35: note: '__builtin___snprintf_chk' output between 9 and 4104 bytes into a destination of size 4096 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ devices/ahci.cpp: In constructor 'ahci::ahci(char*, char*)': 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); | ^~~~~~~~ In function 'int snprintf(char*, size_t, const char*, ...)', inlined from 'ahci::ahci(char*, char*)' at devices/ahci.cpp:145:10: /usr/include/bits/stdio2.h:54:35: note: '__builtin___snprintf_chk' output between 9 and 4104 bytes into a destination of size 4096 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ devices/ahci.cpp: In constructor 'ahci::ahci(char*, char*)': 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); | ^~~~~~~ In function 'int snprintf(char*, size_t, const char*, ...)', inlined from 'ahci::ahci(char*, char*)' at devices/ahci.cpp:148:10: /usr/include/bits/stdio2.h:54:35: note: '__builtin___snprintf_chk' output between 8 and 4103 bytes into a destination of size 4096 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ devices/ahci.cpp: In constructor 'ahci::ahci(char*, char*)': 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 'int snprintf(char*, size_t, const char*, ...)', inlined from 'std::string disk_name(char*, char*, char*)' at devices/ahci.cpp:54:10, 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: /usr/include/bits/stdio2.h:54:35: note: '__builtin___snprintf_chk' output between 2 and 4352 bytes into a destination of size 4096 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ 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 'int snprintf(char*, size_t, const char*, ...)', inlined from 'std::string disk_name(char*, char*, char*)' at devices/ahci.cpp:68:11, 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: /usr/include/bits/stdio2.h:54:35: note: '__builtin___snprintf_chk' output between 8 and 4358 bytes into a destination of size 4096 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ CXX parameters/powertop-learn.o CXX parameters/powertop-parameters.o In file included from devices/../parameters/parameters.h:35, from devices/rfkill.h:31, from devices/rfkill.cpp:38: devices/../parameters/../lib.h: In constructor 'rfkill::rfkill(char*, char*)': devices/../parameters/../lib.h:78:16: warning: 'char* __builtin_strncpy(char*, const char*, long unsigned int)' specified bound 4096 equals destination size [-Wstringop-truncation] 78 | strncpy(d, s, N); | ^ In file included from devices/../parameters/parameters.h:35, from devices/runtime_pm.h:31, from devices/runtime_pm.cpp:25: devices/../parameters/../lib.h: In constructor 'runtime_pmdevice::runtime_pmdevice(const char*, const char*)': devices/../parameters/../lib.h:78:16: warning: 'char* __builtin_strncpy(char*, const char*, long unsigned int)' specified bound 4096 equals destination size [-Wstringop-truncation] 78 | strncpy(d, s, N); | ^ devices/../parameters/../lib.h:78:16: warning: 'char* __builtin_strncpy(char*, const char*, long unsigned int)' specified bound 4096 equals destination size [-Wstringop-truncation] devices/../parameters/../lib.h: In member function 'void runtime_pmdevice::set_human_name(char*)': devices/../parameters/../lib.h:78:16: warning: 'char* __builtin_strncpy(char*, const char*, long unsigned int)' specified bound 4096 equals destination size [-Wstringop-truncation] 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); | ^~~~~ In file included from /usr/include/stdio.h:964, from /usr/include/c++/13.2.1/cstdio:42, from /usr/include/c++/13.2.1/ext/string_conversions.h:45, from /usr/include/c++/13.2.1/bits/basic_string.h:4097, from /usr/include/c++/13.2.1/string:54, from /usr/include/c++/13.2.1/bits/locale_classes.h:40, from /usr/include/c++/13.2.1/bits/ios_base.h:41, from /usr/include/c++/13.2.1/ios:44, from /usr/include/c++/13.2.1/ostream:40, from /usr/include/c++/13.2.1/iostream:41, from devices/rfkill.cpp:25: In function 'int snprintf(char*, size_t, const char*, ...)', inlined from 'virtual void rfkill::end_measurement()' at devices/rfkill.cpp:103:10: /usr/include/bits/stdio2.h:54:35: note: '__builtin___snprintf_chk' output between 6 and 4101 bytes into a destination of size 4096 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ devices/rfkill.cpp: In member function 'virtual void rfkill::end_measurement()': 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); | ^~~~~ In function 'int snprintf(char*, size_t, const char*, ...)', inlined from 'virtual void rfkill::end_measurement()' at devices/rfkill.cpp:109:10: /usr/include/bits/stdio2.h:54:35: note: '__builtin___snprintf_chk' output between 6 and 4101 bytes into a destination of size 4096 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ 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); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/stdio.h:964, from /usr/include/c++/13.2.1/cstdio:42, from /usr/include/c++/13.2.1/ext/string_conversions.h:45, from /usr/include/c++/13.2.1/bits/basic_string.h:4097, from /usr/include/c++/13.2.1/string:54, from devices/../parameters/parameters.h:31: In function 'int snprintf(char*, size_t, const char*, ...)', inlined from 'virtual void runtime_pmdevice::start_measurement()' at devices/runtime_pm.cpp:69:10: /usr/include/bits/stdio2.h:54:35: note: '__builtin___snprintf_chk' output between 30 and 4125 bytes into a destination of size 4096 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ devices/runtime_pm.cpp: In member function 'virtual void runtime_pmdevice::start_measurement()': 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); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In function 'int snprintf(char*, size_t, const char*, ...)', inlined from 'virtual void runtime_pmdevice::start_measurement()' at devices/runtime_pm.cpp:76:10: /usr/include/bits/stdio2.h:54:35: note: '__builtin___snprintf_chk' output between 27 and 4122 bytes into a destination of size 4096 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ In file included from measurement/sysfs.cpp:27: measurement/../lib.h: In constructor 'sysfs_power_meter::sysfs_power_meter(const char*)': measurement/../lib.h:78:16: warning: 'char* __builtin_strncpy(char*, const char*, long unsigned int)' specified bound 256 equals destination size [-Wstringop-truncation] 78 | strncpy(d, s, N); | ^ 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); | ^~~~~ In function 'int snprintf(char*, size_t, const char*, ...)', inlined from 'virtual void rfkill::start_measurement()' at devices/rfkill.cpp:83:10: /usr/include/bits/stdio2.h:54:35: note: '__builtin___snprintf_chk' output between 6 and 4101 bytes into a destination of size 4096 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ devices/rfkill.cpp: In member function 'virtual void rfkill::start_measurement()': 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); | ^~~~~ In function 'int snprintf(char*, size_t, const char*, ...)', inlined from 'virtual void rfkill::start_measurement()' at devices/rfkill.cpp:90:10: /usr/include/bits/stdio2.h:54:35: note: '__builtin___snprintf_chk' output between 6 and 4101 bytes into a destination of size 4096 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ 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); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In function 'int snprintf(char*, size_t, const char*, ...)', inlined from 'virtual void runtime_pmdevice::end_measurement()' at devices/runtime_pm.cpp:89:10: /usr/include/bits/stdio2.h:54:35: note: '__builtin___snprintf_chk' output between 30 and 4125 bytes into a destination of size 4096 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ devices/runtime_pm.cpp: In member function 'virtual void runtime_pmdevice::end_measurement()': 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); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In function 'int snprintf(char*, size_t, const char*, ...)', inlined from 'virtual void runtime_pmdevice::end_measurement()' at devices/runtime_pm.cpp:96:10: /usr/include/bits/stdio2.h:54:35: note: '__builtin___snprintf_chk' output between 27 and 4122 bytes into a destination of size 4096 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ CXX parameters/powertop-persistent.o CXX perf/powertop-perf.o In file included from measurement/acpi.cpp:33: measurement/../lib.h: In constructor 'acpi_power_meter::acpi_power_meter(const char*)': measurement/../lib.h:78:16: warning: 'char* __builtin_strncpy(char*, const char*, long unsigned int)' specified bound 256 equals destination size [-Wstringop-truncation] 78 | strncpy(d, s, N); | ^ measurement/opal-sensors.cpp: In constructor 'opal_sensors_power_meter::opal_sensors_power_meter(const char*)': measurement/opal-sensors.cpp:34:16: warning: 'char* __builtin_strncpy(char*, const char*, long unsigned int)' specified bound 4096 equals destination size [-Wstringop-truncation] 34 | strncpy(name, power_supply_name, sizeof(name)); | ^ CXX perf/powertop-perf_bundle.o CXX process/powertop-do_process.o CXX process/powertop-interrupt.o In file included from devices/../parameters/parameters.h:35, from devices/network.h:32, from devices/network.cpp:42: devices/../parameters/../lib.h: In constructor 'network::network(const char*, const char*)': devices/../parameters/../lib.h:78:16: warning: 'char* __builtin_strncpy(char*, const char*, long unsigned int)' specified bound 4096 equals destination size [-Wstringop-truncation] 78 | strncpy(d, s, N); | ^ CXX process/powertop-powerconsumer.o In file included from devices/../parameters/parameters.h:35, from devices/usb.h:31, from devices/usb.cpp:25: devices/../parameters/../lib.h: In constructor 'usbdevice::usbdevice(const char*, const char*, const char*)': devices/../parameters/../lib.h:78:16: warning: 'char* __builtin_strncpy(char*, const char*, long unsigned int)' specified bound 4096 equals destination size [-Wstringop-truncation] 78 | strncpy(d, s, N); | ^ devices/../parameters/../lib.h:78:16: warning: 'char* __builtin_strncpy(char*, const char*, long unsigned int)' specified bound 4096 equals destination size [-Wstringop-truncation] devices/../parameters/../lib.h:78:16: warning: 'char* __builtin_strncpy(char*, const char*, long unsigned int)' specified bound 4096 equals destination size [-Wstringop-truncation] In file included from measurement/extech.cpp:57: measurement/../lib.h: In constructor 'extech_power_meter::extech_power_meter(const char*)': measurement/../lib.h:78:16: warning: 'char* __builtin_strncpy(char*, const char*, long unsigned int)' specified bound 256 equals destination size [-Wstringop-truncation] 78 | strncpy(d, s, N); | ^ CXX process/powertop-process.o 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); | ^~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/stdio.h:964, from /usr/include/c++/13.2.1/cstdio:42, from /usr/include/c++/13.2.1/ext/string_conversions.h:45, from /usr/include/c++/13.2.1/bits/basic_string.h:4097, from /usr/include/c++/13.2.1/string:54, from devices/../parameters/parameters.h:31: In function 'int snprintf(char*, size_t, const char*, ...)', inlined from 'virtual void usbdevice::start_measurement()' at devices/usb.cpp:129:10: /usr/include/bits/stdio2.h:54:35: note: '__builtin___snprintf_chk' output between 23 and 4118 bytes into a destination of size 4096 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ devices/usb.cpp: In member function 'virtual void usbdevice::start_measurement()': 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); | ^~~~~~~~~~~~~~~~~~~~~~~~~ In function 'int snprintf(char*, size_t, const char*, ...)', inlined from 'virtual void usbdevice::start_measurement()' at devices/usb.cpp:136:10: /usr/include/bits/stdio2.h:54:35: note: '__builtin___snprintf_chk' output between 26 and 4121 bytes into a destination of size 4096 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ CXX process/powertop-processdevice.o CXX process/powertop-timer.o 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); | ^~~~~~~~~~~~~~~~~~~~~~ In function 'int snprintf(char*, size_t, const char*, ...)', inlined from 'virtual void usbdevice::end_measurement()' at devices/usb.cpp:149:10: /usr/include/bits/stdio2.h:54:35: note: '__builtin___snprintf_chk' output between 23 and 4118 bytes into a destination of size 4096 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ CXX process/powertop-work.o devices/usb.cpp: In member function 'virtual void usbdevice::end_measurement()': 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); | ^~~~~~~~~~~~~~~~~~~~~~~~~ In function 'int snprintf(char*, size_t, const char*, ...)', inlined from 'virtual void usbdevice::end_measurement()' at devices/usb.cpp:156:10: /usr/include/bits/stdio2.h:54:35: note: '__builtin___snprintf_chk' output between 26 and 4121 bytes into a destination of size 4096 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ CXX report/powertop-report-data-html.o 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); | ^~~~~~~~~~~~~~~~~~~~~~ In function 'int snprintf(char*, size_t, const char*, ...)', inlined from 'void create_all_usb_devices_callback(const char*)' at devices/usb.cpp:226:10: /usr/include/bits/stdio2.h:54:35: note: '__builtin___snprintf_chk' output between 23 and 4118 bytes into a destination of size 4096 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ devices/usb.cpp: In function 'void create_all_usb_devices_callback(const char*)': 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); | ^~~~~~~~~ In function 'int snprintf(char*, size_t, const char*, ...)', inlined from 'void create_all_usb_devices_callback(const char*)' at devices/usb.cpp:230:10: /usr/include/bits/stdio2.h:54:35: note: '__builtin___snprintf_chk' output between 10 and 4105 bytes into a destination of size 4096 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ devices/usb.cpp: In function 'void create_all_usb_devices_callback(const char*)': 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); | ^~~~~~~~~~ In function 'int snprintf(char*, size_t, const char*, ...)', inlined from 'void create_all_usb_devices_callback(const char*)' at devices/usb.cpp:235:10: /usr/include/bits/stdio2.h:54:35: note: '__builtin___snprintf_chk' output between 11 and 4106 bytes into a destination of size 4096 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ CXX report/powertop-report-formatter-base.o CXX report/powertop-report-formatter-csv.o In file included from process/interrupt.cpp:30: process/../lib.h: In constructor 'interrupt::interrupt(const char*, int)': process/../lib.h:78:16: warning: 'char* __builtin_strncpy(char*, const char*, long unsigned int)' specified bound 32 equals destination size [-Wstringop-truncation] 78 | strncpy(d, s, N); | ^ 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 In file included from process/process.cpp:38: process/../lib.h: In constructor 'process::process(const char*, int, int)': process/../lib.h:78:16: warning: 'char* __builtin_strncpy(char*, const char*, long unsigned int)' specified bound 16 equals destination size [-Wstringop-truncation] 78 | strncpy(d, s, N); | ^ CXX tuning/powertop-runtime.o CXX tuning/powertop-tunable.o CXX tuning/powertop-tuning.o In file included from process/work.cpp:33: process/../lib.h: In constructor 'work::work(long unsigned int)': process/../lib.h:78:16: warning: 'char* __builtin_strncpy(char*, const char*, long unsigned int)' specified bound 32 equals destination size [-Wstringop-truncation] 78 | strncpy(d, s, N); | ^ In file included from process/timer.cpp:33: process/../lib.h: In constructor 'timer::timer(long unsigned int)': process/../lib.h:78:16: warning: 'char* __builtin_strncpy(char*, const char*, long unsigned int)' specified bound 32 equals destination size [-Wstringop-truncation] 78 | strncpy(d, s, N); | ^ CXX tuning/powertop-tuningsysfs.o process/../lib.h: In function 'timer* find_create_timer(uint64_t)': process/../lib.h:78:16: warning: 'char* __builtin_strncpy(char*, const char*, long unsigned int)' specified bound 32 equals destination size [-Wstringop-truncation] 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/tunable.cpp:27: tuning/../lib.h: In constructor 'tunable::tunable(const char*, double, const char*, const char*, const char*)': tuning/../lib.h:78:16: warning: 'char* __builtin_strncpy(char*, const char*, long unsigned int)' specified bound 4096 equals destination size [-Wstringop-truncation] 78 | strncpy(d, s, N); | ^ tuning/../lib.h:78:16: warning: 'char* __builtin_strncpy(char*, const char*, long unsigned int)' specified bound 128 equals destination size [-Wstringop-truncation] tuning/../lib.h:78:16: warning: 'char* __builtin_strncpy(char*, const char*, long unsigned int)' specified bound 128 equals destination size [-Wstringop-truncation] tuning/../lib.h:78:16: warning: 'char* __builtin_strncpy(char*, const char*, long unsigned int)' specified bound 128 equals destination size [-Wstringop-truncation] tuning/../lib.h: In constructor 'tunable::tunable()': tuning/../lib.h:78:16: warning: 'char* __builtin_strncpy(char*, const char*, long unsigned int)' specified bound 128 equals destination size [-Wstringop-truncation] tuning/../lib.h:78:16: warning: 'char* __builtin_strncpy(char*, const char*, long unsigned int)' specified bound 128 equals destination size [-Wstringop-truncation] tuning/../lib.h:78:16: warning: 'char* __builtin_strncpy(char*, const char*, long unsigned int)' specified bound 128 equals destination size [-Wstringop-truncation] In file included from tuning/tunable.h:30, from tuning/ethernet.cpp:27: tuning/../lib.h: In constructor 'ethernet_tunable::ethernet_tunable(const char*)': tuning/../lib.h:78:16: warning: 'char* __builtin_strncpy(char*, const char*, long unsigned int)' specified bound 4096 equals destination size [-Wstringop-truncation] 78 | strncpy(d, s, N); | ^ In file included from wakeup/wakeup.cpp:30: wakeup/../lib.h: In constructor 'wakeup::wakeup(const char*, double, const char*, const char*)': wakeup/../lib.h:78:16: warning: 'char* __builtin_strncpy(char*, const char*, long unsigned int)' specified bound 4096 equals destination size [-Wstringop-truncation] 78 | strncpy(d, s, N); | ^ wakeup/../lib.h:78:16: warning: 'char* __builtin_strncpy(char*, const char*, long unsigned int)' specified bound 128 equals destination size [-Wstringop-truncation] wakeup/../lib.h:78:16: warning: 'char* __builtin_strncpy(char*, const char*, long unsigned int)' specified bound 128 equals destination size [-Wstringop-truncation] wakeup/../lib.h: In constructor 'wakeup::wakeup()': wakeup/../lib.h:78:16: warning: 'char* __builtin_strncpy(char*, const char*, long unsigned int)' specified bound 128 equals destination size [-Wstringop-truncation] wakeup/../lib.h:78:16: warning: 'char* __builtin_strncpy(char*, const char*, long unsigned int)' specified bound 128 equals destination size [-Wstringop-truncation] wakeup/../lib.h:78:16: warning: 'char* __builtin_strncpy(char*, const char*, long unsigned int)' specified bound 128 equals destination size [-Wstringop-truncation] In file included from tuning/tunable.h:30, from tuning/tuningsysfs.cpp:27: tuning/../lib.h: In constructor 'sysfs_tunable::sysfs_tunable(const char*, const char*, const char*)': tuning/../lib.h:78:16: warning: 'char* __builtin_strncpy(char*, const char*, long unsigned int)' specified bound 4096 equals destination size [-Wstringop-truncation] 78 | strncpy(d, s, N); | ^ tuning/../lib.h:78:16: warning: 'char* __builtin_strncpy(char*, const char*, long unsigned int)' specified bound 4096 equals destination size [-Wstringop-truncation] 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); | ^~ In file included from /usr/include/stdio.h:964, from /usr/include/c++/13.2.1/cstdio:42, from /usr/include/c++/13.2.1/ext/string_conversions.h:45, from /usr/include/c++/13.2.1/bits/basic_string.h:4097, from /usr/include/c++/13.2.1/string:54, from tuning/../lib.h:58: In function 'int snprintf(char*, size_t, const char*, ...)', inlined from 'sysfs_tunable::sysfs_tunable(const char*, const char*, const char*)' at tuning/tuningsysfs.cpp:50:10: /usr/include/bits/stdio2.h:54:35: note: '__builtin___snprintf_chk' output between 14 and 8204 bytes into a destination of size 4096 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ tuning/tuningsysfs.cpp: In constructor 'sysfs_tunable::sysfs_tunable(const char*, const char*, const char*)': 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); | ^~ In function 'int snprintf(char*, size_t, const char*, ...)', inlined from 'sysfs_tunable::sysfs_tunable(const char*, const char*, const char*)' at tuning/tuningsysfs.cpp:51:10: /usr/include/bits/stdio2.h:54:35: note: '__builtin___snprintf_chk' output between 14 and 8204 bytes into a destination of size 4096 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ In file included from tuning/tunable.h:30, from tuning/wifi.cpp:27: tuning/../lib.h: In constructor 'wifi_tunable::wifi_tunable(const char*)': tuning/../lib.h:78:16: warning: 'char* __builtin_strncpy(char*, const char*, long unsigned int)' specified bound 4096 equals destination size [-Wstringop-truncation] 78 | strncpy(d, s, N); | ^ 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); | ^~ In file included from /usr/include/stdio.h:964, from /usr/include/c++/13.2.1/cstdio:42, from /usr/include/c++/13.2.1/ext/string_conversions.h:45, from /usr/include/c++/13.2.1/bits/basic_string.h:4097, from /usr/include/c++/13.2.1/string:54, from tuning/../lib.h:58: In function 'int snprintf(char*, size_t, const char*, ...)', inlined from 'wifi_tunable::wifi_tunable(const char*)' at tuning/wifi.cpp:50:10: /usr/include/bits/stdio2.h:54:35: note: '__builtin___snprintf_chk' output between 26 and 4121 bytes into a destination of size 4096 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ tuning/wifi.cpp: In constructor 'wifi_tunable::wifi_tunable(const char*)': 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); | ^~ In function 'int snprintf(char*, size_t, const char*, ...)', inlined from 'wifi_tunable::wifi_tunable(const char*)' at tuning/wifi.cpp:51:10: /usr/include/bits/stdio2.h:54:35: note: '__builtin___snprintf_chk' output between 27 and 4122 bytes into a destination of size 4096 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ tuning/tuningusb.cpp: In constructor 'usb_tunable::usb_tunable(const char*, const char*)': 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); | ^~ In file included from /usr/include/stdio.h:964, from /usr/include/c++/13.2.1/cstdio:42, from /usr/include/c++/13.2.1/ext/string_conversions.h:45, from /usr/include/c++/13.2.1/bits/basic_string.h:4097, from /usr/include/c++/13.2.1/string:54, from tuning/../lib.h:58, from tuning/tunable.h:30, from tuning/tuningusb.cpp:27: In function 'int snprintf(char*, size_t, const char*, ...)', inlined from 'usb_tunable::usb_tunable(const char*, const char*)' at tuning/tuningusb.cpp:77:10: /usr/include/bits/stdio2.h:54:35: note: '__builtin___snprintf_chk' output between 18 and 4113 bytes into a destination of size 4096 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ tuning/tuningusb.cpp: In constructor 'usb_tunable::usb_tunable(const char*, const char*)': 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); | ^~ In function 'int snprintf(char*, size_t, const char*, ...)', inlined from 'usb_tunable::usb_tunable(const char*, const char*)' at tuning/tuningusb.cpp:78:10: /usr/include/bits/stdio2.h:54:35: note: '__builtin___snprintf_chk' output between 16 and 4111 bytes into a destination of size 4096 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ 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); | ^~ In file included from /usr/include/stdio.h:964, from /usr/include/c++/13.2.1/cstdio:42, from /usr/include/c++/13.2.1/ext/string_conversions.h:45, from /usr/include/c++/13.2.1/bits/basic_string.h:4097, from /usr/include/c++/13.2.1/string:54, from tuning/../lib.h:58, from tuning/tunable.h:30, from tuning/runtime.cpp:27: In function 'int snprintf(char*, size_t, const char*, ...)', inlined from 'runtime_tunable::runtime_tunable(const char*, const char*, const char*, const char*)' at tuning/runtime.cpp:86:10: /usr/include/bits/stdio2.h:54:35: note: '__builtin___snprintf_chk' output between 18 and 4113 bytes into a destination of size 4096 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ tuning/runtime.cpp: In constructor 'runtime_tunable::runtime_tunable(const char*, const char*, const char*, const char*)': 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); | ^~ In function 'int snprintf(char*, size_t, const char*, ...)', inlined from 'runtime_tunable::runtime_tunable(const char*, const char*, const char*, const char*)' at tuning/runtime.cpp:87:10: /usr/include/bits/stdio2.h:54:35: note: '__builtin___snprintf_chk' output between 16 and 4111 bytes into a destination of size 4096 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ 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); | ^~ In file included from /usr/include/stdio.h:964, from /usr/include/c++/13.2.1/cstdio:42, from /usr/include/c++/13.2.1/ext/string_conversions.h:45, from /usr/include/c++/13.2.1/bits/basic_string.h:4097, from /usr/include/c++/13.2.1/string:54, from tuning/../lib.h:58, from tuning/tunable.h:30, from tuning/tuningi2c.cpp:21: In function 'int snprintf(char*, size_t, const char*, ...)', inlined from 'i2c_tunable::i2c_tunable(const char*, const char*, bool)' at tuning/tuningi2c.cpp:61:10: /usr/include/bits/stdio2.h:54:35: note: '__builtin___snprintf_chk' output between 18 and 4113 bytes into a destination of size 4096 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ tuning/tuningi2c.cpp: In constructor 'i2c_tunable::i2c_tunable(const char*, const char*, bool)': 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); | ^~ In function 'int snprintf(char*, size_t, const char*, ...)', inlined from 'i2c_tunable::i2c_tunable(const char*, const char*, bool)' at tuning/tuningi2c.cpp:62:10: /usr/include/bits/stdio2.h:54:35: note: '__builtin___snprintf_chk' output between 16 and 4111 bytes into a destination of size 4096 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ 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); | ^~ ~~~~ In function 'int snprintf(char*, size_t, const char*, ...)', inlined from 'void add_runtime_tunables(const char*)' at tuning/runtime.cpp:166:12: /usr/include/bits/stdio2.h:54:35: note: '__builtin___snprintf_chk' output 34 or more bytes (assuming 4384) into a destination of size 4096 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ tuning/runtime.cpp: In function 'void add_runtime_tunables(const char*)': 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); | ^~ ~~~~ In function 'int snprintf(char*, size_t, const char*, ...)', inlined from 'void add_runtime_tunables(const char*)' at tuning/runtime.cpp:171:12: /usr/include/bits/stdio2.h:54:35: note: '__builtin___snprintf_chk' output 20 or more bytes (assuming 4370) into a destination of size 4096 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ tuning/runtime.cpp: In function 'void add_runtime_tunables(const char*)': 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); | ^~ ~~~~ In function 'int snprintf(char*, size_t, const char*, ...)', inlined from 'void add_runtime_tunables(const char*)' at tuning/runtime.cpp:191:12: /usr/include/bits/stdio2.h:54:35: note: '__builtin___snprintf_chk' output between 19 and 4114 bytes into a destination of size 4096 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ In file included from wakeup/wakeup_usb.cpp:44: wakeup/../lib.h: In constructor 'usb_wakeup::usb_wakeup(const char*, const char*)': wakeup/../lib.h:78:16: warning: 'char* __builtin_strncpy(char*, const char*, long unsigned int)' specified bound 4096 equals destination size [-Wstringop-truncation] 78 | strncpy(d, s, N); | ^ 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); | ^~ In file included from /usr/include/stdio.h:964, from wakeup/wakeup_usb.cpp:29: In function 'int snprintf(char*, size_t, const char*, ...)', inlined from 'usb_wakeup::usb_wakeup(const char*, const char*)' at wakeup/wakeup_usb.cpp:53:10: /usr/include/bits/stdio2.h:54:35: note: '__builtin___snprintf_chk' output between 21 and 4116 bytes into a destination of size 4096 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ wakeup/wakeup_usb.cpp: In constructor 'usb_wakeup::usb_wakeup(const char*, const char*)': 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); | ^~ In function 'int snprintf(char*, size_t, const char*, ...)', inlined from 'usb_wakeup::usb_wakeup(const char*, const char*)' at wakeup/wakeup_usb.cpp:54:10: /usr/include/bits/stdio2.h:54:35: note: '__builtin___snprintf_chk' output between 22 and 4117 bytes into a destination of size 4096 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ In file included from wakeup/wakeup_ethernet.cpp:44: wakeup/../lib.h: In constructor 'ethernet_wakeup::ethernet_wakeup(const char*, const char*)': wakeup/../lib.h:78:16: warning: 'char* __builtin_strncpy(char*, const char*, long unsigned int)' specified bound 4096 equals destination size [-Wstringop-truncation] 78 | strncpy(d, s, N); | ^ 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); | ^~ In file included from /usr/include/stdio.h:964, from wakeup/wakeup_ethernet.cpp:29: In function 'int snprintf(char*, size_t, const char*, ...)', inlined from 'ethernet_wakeup::ethernet_wakeup(const char*, const char*)' at wakeup/wakeup_ethernet.cpp:53:10: /usr/include/bits/stdio2.h:54:35: note: '__builtin___snprintf_chk' output between 21 and 4116 bytes into a destination of size 4096 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ wakeup/wakeup_ethernet.cpp: In constructor 'ethernet_wakeup::ethernet_wakeup(const char*, const char*)': 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); | ^~ In function 'int snprintf(char*, size_t, const char*, ...)', inlined from 'ethernet_wakeup::ethernet_wakeup(const char*, const char*)' at wakeup/wakeup_ethernet.cpp:54:10: /usr/include/bits/stdio2.h:54:35: note: '__builtin___snprintf_chk' output between 22 and 4117 bytes into a destination of size 4096 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ CXXLD powertop make[3]: Leaving directory '/tmp/archlinux-ci/powertop-archlinuxrb-build-S29uPWyr/powertop/trunk/src/powertop-2.15/src' make[2]: Leaving directory '/tmp/archlinux-ci/powertop-archlinuxrb-build-S29uPWyr/powertop/trunk/src/powertop-2.15/src' Making all in po make[2]: Entering directory '/tmp/archlinux-ci/powertop-archlinuxrb-build-S29uPWyr/powertop/trunk/src/powertop-2.15/po' test ! -f ./powertop.pot || \ test -z "ca.gmo cs_CZ.gmo de_DE.gmo en_GB.gmo en_US.gmo es_ES.gmo hu_HU.gmo id_ID.gmo nl_NL.gmo zh_TW.gmo" || make ca.gmo cs_CZ.gmo de_DE.gmo en_GB.gmo en_US.gmo es_ES.gmo hu_HU.gmo id_ID.gmo nl_NL.gmo zh_TW.gmo make[3]: Entering directory '/tmp/archlinux-ci/powertop-archlinuxrb-build-S29uPWyr/powertop/trunk/src/powertop-2.15/po' rm -f ca.gmo && /usr/sbin/msgfmt -c --statistics --verbose -o ca.gmo ca.po rm -f cs_CZ.gmo && /usr/sbin/msgfmt -c --statistics --verbose -o cs_CZ.gmo cs_CZ.po rm -f en_GB.gmo && /usr/sbin/msgfmt -c --statistics --verbose -o en_GB.gmo en_GB.po rm -f de_DE.gmo && /usr/sbin/msgfmt -c --statistics --verbose -o de_DE.gmo de_DE.po rm -f en_US.gmo && /usr/sbin/msgfmt -c --statistics --verbose -o en_US.gmo en_US.po rm -f es_ES.gmo && /usr/sbin/msgfmt -c --statistics --verbose -o es_ES.gmo es_ES.po rm -f hu_HU.gmo && /usr/sbin/msgfmt -c --statistics --verbose -o hu_HU.gmo hu_HU.po rm -f id_ID.gmo && /usr/sbin/msgfmt -c --statistics --verbose -o id_ID.gmo id_ID.po rm -f nl_NL.gmo && /usr/sbin/msgfmt -c --statistics --verbose -o nl_NL.gmo nl_NL.po rm -f zh_TW.gmo && /usr/sbin/msgfmt -c --statistics --verbose -o zh_TW.gmo zh_TW.po ca.po: 64 translated messages, 19 fuzzy translations, 121 untranslated messages. nl_NL.po: 22 translated messages, 8 fuzzy translations, 174 untranslated messages. id_ID.po: 110 translated messages, 38 fuzzy translations, 56 untranslated messages. en_GB.po: 21 translated messages, 8 fuzzy translations, 175 untranslated messages. hu_HU.po: 104 translated messages, 33 fuzzy translations, 67 untranslated messages. es_ES.po: 65 translated messages, 23 fuzzy translations, 116 untranslated messages. cs_CZ.po: 109 translated messages, 38 fuzzy translations, 57 untranslated messages. de_DE.po: 111 translated messages, 37 fuzzy translations, 56 untranslated messages. en_US.po: 61 translated messages, 18 fuzzy translations, 125 untranslated messages. zh_TW.po: 110 translated messages, 38 fuzzy translations, 56 untranslated messages. make[3]: Leaving directory '/tmp/archlinux-ci/powertop-archlinuxrb-build-S29uPWyr/powertop/trunk/src/powertop-2.15/po' touch stamp-po make[2]: Leaving directory '/tmp/archlinux-ci/powertop-archlinuxrb-build-S29uPWyr/powertop/trunk/src/powertop-2.15/po' Making all in doc make[2]: Entering directory '/tmp/archlinux-ci/powertop-archlinuxrb-build-S29uPWyr/powertop/trunk/src/powertop-2.15/doc' make[2]: Nothing to be done for 'all'. make[2]: Leaving directory '/tmp/archlinux-ci/powertop-archlinuxrb-build-S29uPWyr/powertop/trunk/src/powertop-2.15/doc' Making all in scripts/bash-completion make[2]: Entering directory '/tmp/archlinux-ci/powertop-archlinuxrb-build-S29uPWyr/powertop/trunk/src/powertop-2.15/scripts/bash-completion' make[2]: Nothing to be done for 'all'. make[2]: Leaving directory '/tmp/archlinux-ci/powertop-archlinuxrb-build-S29uPWyr/powertop/trunk/src/powertop-2.15/scripts/bash-completion' make[2]: Entering directory '/tmp/archlinux-ci/powertop-archlinuxrb-build-S29uPWyr/powertop/trunk/src/powertop-2.15' make[2]: Leaving directory '/tmp/archlinux-ci/powertop-archlinuxrb-build-S29uPWyr/powertop/trunk/src/powertop-2.15' make[1]: Leaving directory '/tmp/archlinux-ci/powertop-archlinuxrb-build-S29uPWyr/powertop/trunk/src/powertop-2.15' ==> Entering fakeroot environment... ==> Starting package()... Making install in traceevent make[1]: Entering directory '/tmp/archlinux-ci/powertop-archlinuxrb-build-S29uPWyr/powertop/trunk/src/powertop-2.15/traceevent' make[2]: Entering directory '/tmp/archlinux-ci/powertop-archlinuxrb-build-S29uPWyr/powertop/trunk/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 '/tmp/archlinux-ci/powertop-archlinuxrb-build-S29uPWyr/powertop/trunk/src/powertop-2.15/traceevent' make[1]: Leaving directory '/tmp/archlinux-ci/powertop-archlinuxrb-build-S29uPWyr/powertop/trunk/src/powertop-2.15/traceevent' Making install in src make[1]: Entering directory '/tmp/archlinux-ci/powertop-archlinuxrb-build-S29uPWyr/powertop/trunk/src/powertop-2.15/src' make install-am make[2]: Entering directory '/tmp/archlinux-ci/powertop-archlinuxrb-build-S29uPWyr/powertop/trunk/src/powertop-2.15/src' make[3]: Entering directory '/tmp/archlinux-ci/powertop-archlinuxrb-build-S29uPWyr/powertop/trunk/src/powertop-2.15/src' make[3]: Nothing to be done for 'install-data-am'. /usr/sbin/mkdir -p '/tmp/archlinux-ci/powertop-archlinuxrb-build-S29uPWyr/powertop/trunk/pkg/powertop/usr/bin' /bin/sh ../libtool --mode=install /usr/bin/install -c powertop '/tmp/archlinux-ci/powertop-archlinuxrb-build-S29uPWyr/powertop/trunk/pkg/powertop/usr/bin' libtool: install: /usr/bin/install -c powertop /tmp/archlinux-ci/powertop-archlinuxrb-build-S29uPWyr/powertop/trunk/pkg/powertop/usr/bin/powertop make[3]: Leaving directory '/tmp/archlinux-ci/powertop-archlinuxrb-build-S29uPWyr/powertop/trunk/src/powertop-2.15/src' make[2]: Leaving directory '/tmp/archlinux-ci/powertop-archlinuxrb-build-S29uPWyr/powertop/trunk/src/powertop-2.15/src' make[1]: Leaving directory '/tmp/archlinux-ci/powertop-archlinuxrb-build-S29uPWyr/powertop/trunk/src/powertop-2.15/src' Making install in po make[1]: Entering directory '/tmp/archlinux-ci/powertop-archlinuxrb-build-S29uPWyr/powertop/trunk/src/powertop-2.15/po' installing ca.gmo as /tmp/archlinux-ci/powertop-archlinuxrb-build-S29uPWyr/powertop/trunk/pkg/powertop/usr/share/locale/ca/LC_MESSAGES/powertop.mo installing cs_CZ.gmo as /tmp/archlinux-ci/powertop-archlinuxrb-build-S29uPWyr/powertop/trunk/pkg/powertop/usr/share/locale/cs_CZ/LC_MESSAGES/powertop.mo installing de_DE.gmo as /tmp/archlinux-ci/powertop-archlinuxrb-build-S29uPWyr/powertop/trunk/pkg/powertop/usr/share/locale/de_DE/LC_MESSAGES/powertop.mo installing en_GB.gmo as /tmp/archlinux-ci/powertop-archlinuxrb-build-S29uPWyr/powertop/trunk/pkg/powertop/usr/share/locale/en_GB/LC_MESSAGES/powertop.mo installing en_US.gmo as /tmp/archlinux-ci/powertop-archlinuxrb-build-S29uPWyr/powertop/trunk/pkg/powertop/usr/share/locale/en_US/LC_MESSAGES/powertop.mo installing es_ES.gmo as /tmp/archlinux-ci/powertop-archlinuxrb-build-S29uPWyr/powertop/trunk/pkg/powertop/usr/share/locale/es_ES/LC_MESSAGES/powertop.mo installing hu_HU.gmo as /tmp/archlinux-ci/powertop-archlinuxrb-build-S29uPWyr/powertop/trunk/pkg/powertop/usr/share/locale/hu_HU/LC_MESSAGES/powertop.mo installing id_ID.gmo as /tmp/archlinux-ci/powertop-archlinuxrb-build-S29uPWyr/powertop/trunk/pkg/powertop/usr/share/locale/id_ID/LC_MESSAGES/powertop.mo installing nl_NL.gmo as /tmp/archlinux-ci/powertop-archlinuxrb-build-S29uPWyr/powertop/trunk/pkg/powertop/usr/share/locale/nl_NL/LC_MESSAGES/powertop.mo installing zh_TW.gmo as /tmp/archlinux-ci/powertop-archlinuxrb-build-S29uPWyr/powertop/trunk/pkg/powertop/usr/share/locale/zh_TW/LC_MESSAGES/powertop.mo if test "powertop" = "gettext-tools"; then \ /usr/sbin/mkdir -p /tmp/archlinux-ci/powertop-archlinuxrb-build-S29uPWyr/powertop/trunk/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 \ /tmp/archlinux-ci/powertop-archlinuxrb-build-S29uPWyr/powertop/trunk/pkg/powertop/usr/share/gettext/po/$file; \ done; \ for file in Makevars; do \ rm -f /tmp/archlinux-ci/powertop-archlinuxrb-build-S29uPWyr/powertop/trunk/pkg/powertop/usr/share/gettext/po/$file; \ done; \ else \ : ; \ fi make[1]: Leaving directory '/tmp/archlinux-ci/powertop-archlinuxrb-build-S29uPWyr/powertop/trunk/src/powertop-2.15/po' Making install in doc make[1]: Entering directory '/tmp/archlinux-ci/powertop-archlinuxrb-build-S29uPWyr/powertop/trunk/src/powertop-2.15/doc' make[2]: Entering directory '/tmp/archlinux-ci/powertop-archlinuxrb-build-S29uPWyr/powertop/trunk/src/powertop-2.15/doc' make[2]: Nothing to be done for 'install-exec-am'. /usr/sbin/mkdir -p '/tmp/archlinux-ci/powertop-archlinuxrb-build-S29uPWyr/powertop/trunk/pkg/powertop/usr/share/man/man8' /usr/bin/install -c -m 644 powertop.8 '/tmp/archlinux-ci/powertop-archlinuxrb-build-S29uPWyr/powertop/trunk/pkg/powertop/usr/share/man/man8' make[2]: Leaving directory '/tmp/archlinux-ci/powertop-archlinuxrb-build-S29uPWyr/powertop/trunk/src/powertop-2.15/doc' make[1]: Leaving directory '/tmp/archlinux-ci/powertop-archlinuxrb-build-S29uPWyr/powertop/trunk/src/powertop-2.15/doc' Making install in scripts/bash-completion make[1]: Entering directory '/tmp/archlinux-ci/powertop-archlinuxrb-build-S29uPWyr/powertop/trunk/src/powertop-2.15/scripts/bash-completion' make[2]: Entering directory '/tmp/archlinux-ci/powertop-archlinuxrb-build-S29uPWyr/powertop/trunk/src/powertop-2.15/scripts/bash-completion' make[2]: Nothing to be done for 'install-exec-am'. /usr/sbin/mkdir -p '/tmp/archlinux-ci/powertop-archlinuxrb-build-S29uPWyr/powertop/trunk/pkg/powertop/usr/share/bash-completion/completions' /usr/bin/install -c -m 644 powertop '/tmp/archlinux-ci/powertop-archlinuxrb-build-S29uPWyr/powertop/trunk/pkg/powertop/usr/share/bash-completion/completions' make[2]: Leaving directory '/tmp/archlinux-ci/powertop-archlinuxrb-build-S29uPWyr/powertop/trunk/src/powertop-2.15/scripts/bash-completion' make[1]: Leaving directory '/tmp/archlinux-ci/powertop-archlinuxrb-build-S29uPWyr/powertop/trunk/src/powertop-2.15/scripts/bash-completion' make[1]: Entering directory '/tmp/archlinux-ci/powertop-archlinuxrb-build-S29uPWyr/powertop/trunk/src/powertop-2.15' make[2]: Entering directory '/tmp/archlinux-ci/powertop-archlinuxrb-build-S29uPWyr/powertop/trunk/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 '/tmp/archlinux-ci/powertop-archlinuxrb-build-S29uPWyr/powertop/trunk/src/powertop-2.15' make[1]: Leaving directory '/tmp/archlinux-ci/powertop-archlinuxrb-build-S29uPWyr/powertop/trunk/src/powertop-2.15' ==> Tidying install... -> Removing libtool files... -> Purging unwanted files... -> Removing static library files... -> Stripping unneeded symbols from binaries and libraries... -> Compressing man and info pages... ==> Checking for packaging issues... ==> Creating package "powertop"... -> Generating .PKGINFO file... -> Generating .BUILDINFO file... -> Adding changelog file... -> Generating .MTREE file... -> Compressing package... ==> Leaving fakeroot environment. ==> Finished making: powertop 2.15-1 (Fri Aug 4 09:39:39 2023)