89 | snprintf(filename, sizeof(filename), "%s/power_off_acct", sysfs_path); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ devices/alsa.cpp:96:43: warning: '/power_on_acct' directive output may be truncated writing 14 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] 96 | snprintf(filename, sizeof(filename), "%s/power_on_acct", sysfs_path); | ^~~~~~~~~~~~~~ devices/alsa.cpp:96:11: note: 'snprintf' output between 15 and 4110 bytes into a destination of size 4096 96 | snprintf(filename, sizeof(filename), "%s/power_on_acct", sysfs_path); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CXX devices/powertop-device.o devices/backlight.cpp: In member function 'virtual double backlight::power_usage(result_bundle*, parameter_bundle*)': devices/backlight.cpp:217:25: warning: '-power' directive writing 6 bytes into a region of size between 1 and 4096 [-Wformat-overflow=] 217 | sprintf(powername, "%s-power", name); | ^~~~~~ devices/backlight.cpp:217:10: note: 'sprintf' output between 7 and 4102 bytes into a destination of size 4096 217 | sprintf(powername, "%s-power", name); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ devices/alsa.cpp: In member function 'virtual void alsa::end_measurement()': devices/alsa.cpp:115:42: warning: '/power_off_acct' directive output may be truncated writing 15 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] 115 | snprintf(filename, sizeof(filename), "%s/power_off_acct", sysfs_path); | ^~~~~~~~~~~~~~~ devices/alsa.cpp:115:10: note: 'snprintf' output between 16 and 4111 bytes into a destination of size 4096 115 | snprintf(filename, sizeof(filename), "%s/power_off_acct", sysfs_path); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ devices/alsa.cpp:122:43: warning: '/power_on_acct' directive output may be truncated writing 14 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] 122 | snprintf(filename, sizeof(filename), "%s/power_on_acct", sysfs_path); | ^~~~~~~~~~~~~~ devices/alsa.cpp:122:11: note: 'snprintf' output between 15 and 4110 bytes into a destination of size 4096 122 | snprintf(filename, sizeof(filename), "%s/power_on_acct", sysfs_path); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from devices/../parameters/parameters.h:35, from devices/alsa.h:30, from devices/alsa.cpp:35: devices/alsa.cpp: In constructor 'alsa::alsa(const char*, const char*)': devices/alsa.cpp:81:44: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4082 [-Wformat-truncation=] 81 | snprintf(humanname, sizeof(humanname), _("Audio codec %s: %s"), _name, vendor); | ~ devices/../parameters/../lib.h:41:23: note: in definition of macro '_' 41 | #define _(STRING) (STRING) | ^~~~~~ devices/alsa.cpp:81:11: note: 'snprintf' output 15 or more bytes (assuming 4110) into a destination of size 4096 81 | snprintf(humanname, sizeof(humanname), _("Audio codec %s: %s"), _name, vendor); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from devices/../parameters/parameters.h:35, from devices/alsa.h:30, from devices/alsa.cpp:35: devices/alsa.cpp:79:44: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4082 [-Wformat-truncation=] 79 | snprintf(humanname, sizeof(humanname), _("Audio codec %s: %s"), _name, model); | ~ devices/../parameters/../lib.h:41:23: note: in definition of macro '_' 41 | #define _(STRING) (STRING) | ^~~~~~ devices/alsa.cpp:79:11: note: 'snprintf' output 15 or more bytes (assuming 4110) into a destination of size 4096 79 | snprintf(humanname, sizeof(humanname), _("Audio codec %s: %s"), _name, model); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from devices/../parameters/parameters.h:35, from devices/alsa.h:30, from devices/alsa.cpp:35: devices/alsa.cpp:77:44: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4084 [-Wformat-truncation=] 77 | snprintf(humanname, sizeof(humanname), _("Audio codec %s: %s (%s)"), name, model, vendor); devices/../parameters/../lib.h:41:23: note: in definition of macro '_' 41 | #define _(STRING) (STRING) | ^~~~~~ devices/alsa.cpp:77:11: note: 'snprintf' output between 18 and 12303 bytes into a destination of size 4096 77 | snprintf(humanname, sizeof(humanname), _("Audio codec %s: %s (%s)"), name, model, vendor); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ devices/backlight.cpp: In member function 'virtual void backlight::start_measurement()': devices/backlight.cpp:61:42: warning: '/max_brightness' directive output may be truncated writing 15 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] 61 | snprintf(filename, sizeof(filename), "%s/max_brightness", sysfs_path); | ^~~~~~~~~~~~~~~ devices/backlight.cpp:61:10: note: 'snprintf' output between 16 and 4111 bytes into a destination of size 4096 61 | snprintf(filename, sizeof(filename), "%s/max_brightness", sysfs_path); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ devices/backlight.cpp:68:42: warning: '/actual_brightness' directive output may be truncated writing 18 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] 68 | snprintf(filename, sizeof(filename), "%s/actual_brightness", sysfs_path); | ^~~~~~~~~~~~~~~~~~ devices/backlight.cpp:68:10: note: 'snprintf' output between 19 and 4114 bytes into a destination of size 4096 68 | snprintf(filename, sizeof(filename), "%s/actual_brightness", sysfs_path); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ devices/backlight.cpp: In member function 'virtual void backlight::end_measurement()': devices/backlight.cpp:125:42: warning: '/actual_brightness' directive output may be truncated writing 18 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] 125 | snprintf(filename, sizeof(filename), "%s/actual_brightness", sysfs_path); | ^~~~~~~~~~~~~~~~~~ devices/backlight.cpp:125:10: note: 'snprintf' output between 19 and 4114 bytes into a destination of size 4096 125 | snprintf(filename, sizeof(filename), "%s/actual_brightness", sysfs_path); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ devices/backlight.cpp:140:44: warning: '-power' directive output may be truncated writing 6 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] 140 | snprintf(powername, sizeof(powername), "%s-power", name); | ^~~~~~ devices/backlight.cpp:140:10: note: 'snprintf' output between 7 and 4102 bytes into a destination of size 4096 140 | snprintf(powername, sizeof(powername), "%s-power", name); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CXX devices/powertop-gpu_rapl_device.o CXX devices/powertop-i915-gpu.o CXX devices/powertop-network.o CXX devices/powertop-rfkill.o devices/device.cpp: In member function 'void device::register_sysfs_path(const char*)': devices/device.cpp:75:45: warning: '/device' directive output may be truncated writing 7 bytes into a region of size between 1 and 4097 [-Wformat-truncation=] 75 | snprintf(test_path, sizeof(test_path), "%s/device", current_path); | ^~~~~~~ devices/device.cpp:75:11: note: 'snprintf' output between 8 and 4104 bytes into a destination of size 4097 75 | snprintf(test_path, sizeof(test_path), "%s/device", current_path); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CXX devices/powertop-runtime_pm.o CXX devices/powertop-thinkpad-fan.o devices/rfkill.cpp: In member function 'virtual void rfkill::start_measurement()': devices/rfkill.cpp:83:42: warning: '/hard' directive output may be truncated writing 5 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] 83 | snprintf(filename, sizeof(filename), "%s/hard", sysfs_path); | ^~~~~ devices/rfkill.cpp:83:10: note: 'snprintf' output between 6 and 4101 bytes into a destination of size 4096 83 | snprintf(filename, sizeof(filename), "%s/hard", sysfs_path); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ devices/rfkill.cpp:90:42: warning: '/soft' directive output may be truncated writing 5 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] 90 | snprintf(filename, sizeof(filename), "%s/soft", sysfs_path); | ^~~~~ devices/rfkill.cpp:90:10: note: 'snprintf' output between 6 and 4101 bytes into a destination of size 4096 90 | snprintf(filename, sizeof(filename), "%s/soft", sysfs_path); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ devices/rfkill.cpp: In member function 'virtual void rfkill::end_measurement()': devices/rfkill.cpp:103:42: warning: '/hard' directive output may be truncated writing 5 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] 103 | snprintf(filename, sizeof(filename), "%s/hard", sysfs_path); | ^~~~~ devices/rfkill.cpp:103:10: note: 'snprintf' output between 6 and 4101 bytes into a destination of size 4096 103 | snprintf(filename, sizeof(filename), "%s/hard", sysfs_path); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ devices/rfkill.cpp:109:42: warning: '/soft' directive output may be truncated writing 5 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] 109 | snprintf(filename, sizeof(filename), "%s/soft", sysfs_path); | ^~~~~ devices/rfkill.cpp:109:10: note: 'snprintf' output between 6 and 4101 bytes into a destination of size 4096 109 | snprintf(filename, sizeof(filename), "%s/soft", sysfs_path); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CXX devices/powertop-thinkpad-light.o CXX devices/powertop-usb.o devices/runtime_pm.cpp: In member function 'virtual void runtime_pmdevice::start_measurement()': devices/runtime_pm.cpp:69:42: warning: '/power/runtime_suspended_time' directive output may be truncated writing 29 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] 69 | snprintf(filename, sizeof(filename), "%s/power/runtime_suspended_time", sysfs_path); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ devices/runtime_pm.cpp:69:10: note: 'snprintf' output between 30 and 4125 bytes into a destination of size 4096 69 | snprintf(filename, sizeof(filename), "%s/power/runtime_suspended_time", sysfs_path); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ devices/runtime_pm.cpp:76:42: warning: '/power/runtime_active_time' directive output may be truncated writing 26 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] 76 | snprintf(filename, sizeof(filename), "%s/power/runtime_active_time", sysfs_path); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ devices/runtime_pm.cpp:76:10: note: 'snprintf' output between 27 and 4122 bytes into a destination of size 4096 76 | snprintf(filename, sizeof(filename), "%s/power/runtime_active_time", sysfs_path); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ devices/runtime_pm.cpp: In member function 'virtual void runtime_pmdevice::end_measurement()': devices/runtime_pm.cpp:89:42: warning: '/power/runtime_suspended_time' directive output may be truncated writing 29 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] 89 | snprintf(filename, sizeof(filename), "%s/power/runtime_suspended_time", sysfs_path); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ devices/runtime_pm.cpp:89:10: note: 'snprintf' output between 30 and 4125 bytes into a destination of size 4096 89 | snprintf(filename, sizeof(filename), "%s/power/runtime_suspended_time", sysfs_path); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ devices/runtime_pm.cpp:96:42: warning: '/power/runtime_active_time' directive output may be truncated writing 26 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] 96 | snprintf(filename, sizeof(filename), "%s/power/runtime_active_time", sysfs_path); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ devices/runtime_pm.cpp:96:10: note: 'snprintf' output between 27 and 4122 bytes into a destination of size 4096 96 | snprintf(filename, sizeof(filename), "%s/power/runtime_active_time", sysfs_path); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CXX measurement/powertop-acpi.o CXX measurement/powertop-extech.o CXX measurement/powertop-measurement.o devices/usb.cpp: In member function 'virtual void usbdevice::start_measurement()': devices/usb.cpp:129:42: warning: '/power/active_duration' directive output may be truncated writing 22 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] 129 | snprintf(fullpath, sizeof(fullpath), "%s/power/active_duration", sysfs_path); | ^~~~~~~~~~~~~~~~~~~~~~ devices/usb.cpp:129:10: note: 'snprintf' output between 23 and 4118 bytes into a destination of size 4096 129 | snprintf(fullpath, sizeof(fullpath), "%s/power/active_duration", sysfs_path); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ devices/usb.cpp:136:42: warning: '/power/connected_duration' directive output may be truncated writing 25 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] 136 | snprintf(fullpath, sizeof(fullpath), "%s/power/connected_duration", sysfs_path); | ^~~~~~~~~~~~~~~~~~~~~~~~~ devices/usb.cpp:136:10: note: 'snprintf' output between 26 and 4121 bytes into a destination of size 4096 136 | snprintf(fullpath, sizeof(fullpath), "%s/power/connected_duration", sysfs_path); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ devices/usb.cpp: In member function 'virtual void usbdevice::end_measurement()': devices/usb.cpp:149:42: warning: '/power/active_duration' directive output may be truncated writing 22 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] 149 | snprintf(fullpath, sizeof(fullpath), "%s/power/active_duration", sysfs_path); | ^~~~~~~~~~~~~~~~~~~~~~ devices/usb.cpp:149:10: note: 'snprintf' output between 23 and 4118 bytes into a destination of size 4096 149 | snprintf(fullpath, sizeof(fullpath), "%s/power/active_duration", sysfs_path); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ devices/usb.cpp:156:42: warning: '/power/connected_duration' directive output may be truncated writing 25 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] 156 | snprintf(fullpath, sizeof(fullpath), "%s/power/connected_duration", sysfs_path); | ^~~~~~~~~~~~~~~~~~~~~~~~~ devices/usb.cpp:156:10: note: 'snprintf' output between 26 and 4121 bytes into a destination of size 4096 156 | snprintf(fullpath, sizeof(fullpath), "%s/power/connected_duration", sysfs_path); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from devices/../parameters/parameters.h:35, from devices/usb.h:31, from devices/usb.cpp:25: devices/usb.cpp: In constructor 'usbdevice::usbdevice(const char*, const char*, const char*)': devices/usb.cpp:96:44: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4084 [-Wformat-truncation=] 96 | snprintf(humanname, sizeof(humanname), _("USB device: %s"), product); | ~ devices/../parameters/../lib.h:41:23: note: in definition of macro '_' 41 | #define _(STRING) (STRING) | ^~~~~~ devices/usb.cpp:96:11: note: 'snprintf' output between 13 and 4108 bytes into a destination of size 4096 96 | snprintf(humanname, sizeof(humanname), _("USB device: %s"), product); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from devices/../parameters/parameters.h:35, from devices/usb.h:31, from devices/usb.cpp:25: devices/usb.cpp:98:44: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4084 [-Wformat-truncation=] 98 | snprintf(humanname, sizeof(humanname), _("USB device: %s"), vendor); | ~ devices/../parameters/../lib.h:41:23: note: in definition of macro '_' 41 | #define _(STRING) (STRING) | ^~~~~~ devices/usb.cpp:98:11: note: 'snprintf' output between 13 and 4108 bytes into a destination of size 4096 98 | snprintf(humanname, sizeof(humanname), _("USB device: %s"), vendor); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from devices/../parameters/parameters.h:35, from devices/usb.h:31, from devices/usb.cpp:25: devices/usb.cpp:94:44: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4084 [-Wformat-truncation=] 94 | snprintf(humanname, sizeof(humanname), _("USB device: %s (%s)"), product, vendor); | ~ devices/../parameters/../lib.h:41:23: note: in definition of macro '_' 41 | #define _(STRING) (STRING) | ^~~~~~ devices/usb.cpp:94:11: note: 'snprintf' output between 16 and 8206 bytes into a destination of size 4096 94 | snprintf(humanname, sizeof(humanname), _("USB device: %s (%s)"), product, vendor); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ devices/usb.cpp: In function 'void create_all_usb_devices_callback(const char*)': devices/usb.cpp:226:48: warning: '/power/active_duration' directive output may be truncated writing 22 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] 226 | snprintf(device_name, sizeof(device_name), "%s/power/active_duration", filename); | ^~~~~~~~~~~~~~~~~~~~~~ devices/usb.cpp:226:10: note: 'snprintf' output between 23 and 4118 bytes into a destination of size 4096 226 | snprintf(device_name, sizeof(device_name), "%s/power/active_duration", filename); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ devices/usb.cpp:230:48: warning: '/idVendor' directive output may be truncated writing 9 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] 230 | snprintf(device_name, sizeof(device_name), "%s/idVendor", filename); | ^~~~~~~~~ devices/usb.cpp:230:10: note: 'snprintf' output between 10 and 4105 bytes into a destination of size 4096 230 | snprintf(device_name, sizeof(device_name), "%s/idVendor", filename); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ devices/usb.cpp:235:48: warning: '/idProduct' directive output may be truncated writing 10 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] 235 | snprintf(device_name, sizeof(device_name), "%s/idProduct", filename); | ^~~~~~~~~~ devices/usb.cpp:235:10: note: 'snprintf' output between 11 and 4106 bytes into a destination of size 4096 235 | snprintf(device_name, sizeof(device_name), "%s/idProduct", filename); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CXX measurement/powertop-sysfs.o CXX measurement/powertop-opal-sensors.o CXX parameters/powertop-learn.o CXX parameters/powertop-parameters.o CXX parameters/powertop-persistent.o CXX perf/powertop-perf.o CXX perf/powertop-perf_bundle.o parameters/parameters.cpp: In function 'int global_power_valid()': parameters/parameters.cpp:443:40: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'std::vector::size_type' {aka 'unsigned int'} [-Wformat=] 443 | printf("To show power estimates do %ld measurement(s) connected to battery only\n", | ~~^ | | | long int | %d 444 | (3 * all_parameters.parameters.size()) - past_results.size()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | std::vector::size_type {aka unsigned int} CXX process/powertop-do_process.o CXX process/powertop-interrupt.o CXX process/powertop-powerconsumer.o CXX process/powertop-process.o CXX process/powertop-processdevice.o CXX process/powertop-timer.o CXX process/powertop-work.o CXX report/powertop-report-data-html.o CXX report/powertop-report-formatter-base.o CXX report/powertop-report-formatter-csv.o CXX report/powertop-report-formatter-html.o CXX report/powertop-report-maker.o CXX report/powertop-report.o CXX tuning/powertop-bluetooth.o CXX tuning/powertop-ethernet.o CC tuning/powertop-iw.o CXX tuning/powertop-runtime.o CXX tuning/powertop-tunable.o CXX tuning/powertop-tuning.o CXX tuning/powertop-tuningsysfs.o CXX tuning/powertop-tuningusb.o tuning/runtime.cpp: In constructor 'runtime_tunable::runtime_tunable(const char*, const char*, const char*, const char*)': tuning/runtime.cpp:86:61: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4081 [-Wformat-truncation=] 86 | snprintf(toggle_good, sizeof(toggle_good), "echo 'auto' > '%s';", runtime_path); | ^~ tuning/runtime.cpp:86:10: note: 'snprintf' output between 18 and 4113 bytes into a destination of size 4096 86 | snprintf(toggle_good, sizeof(toggle_good), "echo 'auto' > '%s';", runtime_path); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tuning/runtime.cpp:87:57: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4083 [-Wformat-truncation=] 87 | snprintf(toggle_bad, sizeof(toggle_bad), "echo 'on' > '%s';", runtime_path); | ^~ tuning/runtime.cpp:87:10: note: 'snprintf' output between 16 and 4111 bytes into a destination of size 4096 87 | snprintf(toggle_bad, sizeof(toggle_bad), "echo 'on' > '%s';", runtime_path); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tuning/runtime.cpp: In function 'void add_runtime_tunables(const char*)': tuning/runtime.cpp:166:65: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size between 3822 and 4077 [-Wformat-truncation=] 166 | snprintf(filename, sizeof(filename), "/sys/bus/%s/devices/%s/%s/power/control", bus, entry->d_name, port); | ^~ ~~~~ tuning/runtime.cpp:166:12: note: 'snprintf' output 34 or more bytes (assuming 4384) into a destination of size 4096 166 | snprintf(filename, sizeof(filename), "/sys/bus/%s/devices/%s/%s/power/control", bus, entry->d_name, port); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tuning/runtime.cpp:171:65: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size between 3822 and 4077 [-Wformat-truncation=] 171 | snprintf(filename, sizeof(filename), "/sys/bus/%s/devices/%s/%s", bus, entry->d_name, port); | ^~ ~~~~ tuning/runtime.cpp:171:12: note: 'snprintf' output 20 or more bytes (assuming 4370) into a destination of size 4096 171 | snprintf(filename, sizeof(filename), "/sys/bus/%s/devices/%s/%s", bus, entry->d_name, port); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tuning/runtime.cpp:192:53: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4085 [-Wformat-truncation=] 192 | snprintf(filename, sizeof(filename), "/sys/block/%s/device", port); | ^~ ~~~~ tuning/runtime.cpp:192:12: note: 'snprintf' output between 19 and 4114 bytes into a destination of size 4096 192 | snprintf(filename, sizeof(filename), "/sys/block/%s/device", port); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CXX tuning/powertop-tuningi2c.o tuning/tuningsysfs.cpp: In constructor 'sysfs_tunable::sysfs_tunable(const char*, const char*, const char*)': tuning/tuningsysfs.cpp:50:52: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4090 [-Wformat-truncation=] 50 | snprintf(toggle_good, sizeof(toggle_good), "echo '%s' > '%s';", target_value, sysfs_path); | ^~ tuning/tuningsysfs.cpp:50:10: note: 'snprintf' output between 14 and 8204 bytes into a destination of size 4096 50 | snprintf(toggle_good, sizeof(toggle_good), "echo '%s' > '%s';", target_value, sysfs_path); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tuning/tuningsysfs.cpp:51:50: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4090 [-Wformat-truncation=] 51 | snprintf(toggle_bad, sizeof(toggle_bad), "echo '%s' > '%s';", bad_value, sysfs_path); | ^~ tuning/tuningsysfs.cpp:51:10: note: 'snprintf' output between 14 and 8204 bytes into a destination of size 4096 51 | snprintf(toggle_bad, sizeof(toggle_bad), "echo '%s' > '%s';", bad_value, sysfs_path); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CXX tuning/powertop-wifi.o In file included from tuning/tunable.h:30, from tuning/tuningusb.cpp:27: tuning/tuningusb.cpp: In constructor 'usb_tunable::usb_tunable(const char*, const char*)': tuning/tuningusb.cpp:71:34: warning: '%s' directive output may be truncated writing up to 2047 bytes into a region of size between 2020 and 4067 [-Wformat-truncation=] 71 | snprintf(desc, sizeof(desc), _("Autosuspend for USB device %s [%s]"), product, vendor); | ~ tuning/../lib.h:41:23: note: in definition of macro '_' 41 | #define _(STRING) (STRING) | ^~~~~~ tuning/tuningusb.cpp:71:11: note: 'snprintf' output between 31 and 4125 bytes into a destination of size 4096 71 | snprintf(desc, sizeof(desc), _("Autosuspend for USB device %s [%s]"), product, vendor); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tuning/tuningusb.cpp:77:61: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4081 [-Wformat-truncation=] 77 | snprintf(toggle_good, sizeof(toggle_good), "echo 'auto' > '%s';", usb_path); | ^~ tuning/tuningusb.cpp:77:10: note: 'snprintf' output between 18 and 4113 bytes into a destination of size 4096 77 | snprintf(toggle_good, sizeof(toggle_good), "echo 'auto' > '%s';", usb_path); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tuning/tuningusb.cpp:78:57: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4083 [-Wformat-truncation=] 78 | snprintf(toggle_bad, sizeof(toggle_bad), "echo 'on' > '%s';", usb_path); | ^~ tuning/tuningusb.cpp:78:10: note: 'snprintf' output between 16 and 4111 bytes into a destination of size 4096 78 | snprintf(toggle_bad, sizeof(toggle_bad), "echo 'on' > '%s';", usb_path); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CXX wakeup/powertop-wakeup.o tuning/tuningi2c.cpp: In constructor 'i2c_tunable::i2c_tunable(const char*, const char*, bool)': tuning/tuningi2c.cpp:61:61: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4081 [-Wformat-truncation=] 61 | snprintf(toggle_good, sizeof(toggle_good), "echo 'auto' > '%s';", i2c_path); | ^~ tuning/tuningi2c.cpp:61:10: note: 'snprintf' output between 18 and 4113 bytes into a destination of size 4096 61 | snprintf(toggle_good, sizeof(toggle_good), "echo 'auto' > '%s';", i2c_path); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tuning/tuningi2c.cpp:62:57: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4083 [-Wformat-truncation=] 62 | snprintf(toggle_bad, sizeof(toggle_bad), "echo 'on' > '%s';", i2c_path); | ^~ tuning/tuningi2c.cpp:62:10: note: 'snprintf' output between 16 and 4111 bytes into a destination of size 4096 62 | snprintf(toggle_bad, sizeof(toggle_bad), "echo 'on' > '%s';", i2c_path); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CXX wakeup/powertop-waketab.o CXX wakeup/powertop-wakeup_ethernet.o CXX wakeup/powertop-wakeup_usb.o In file included from tuning/tunable.h:30, from tuning/wifi.cpp:27: tuning/wifi.cpp: In constructor 'wifi_tunable::wifi_tunable(const char*)': tuning/wifi.cpp:48:18: warning: '%s' directive writing up to 4095 bytes into a region of size 4060 [-Wformat-overflow=] 48 | sprintf(desc, _("Wireless Power Saving for interface %s"), iface); tuning/../lib.h:41:23: note: in definition of macro '_' 41 | #define _(STRING) (STRING) | ^~~~~~ tuning/wifi.cpp:48:9: note: 'sprintf' output between 37 and 4132 bytes into a destination of size 4096 48 | sprintf(desc, _("Wireless Power Saving for interface %s"), iface); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tuning/wifi.cpp:50:53: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4089 [-Wformat-truncation=] 50 | snprintf(toggle_good, sizeof(toggle_good), "iw dev %s set power_save on", iface); | ^~ tuning/wifi.cpp:50:10: note: 'snprintf' output between 26 and 4121 bytes into a destination of size 4096 50 | snprintf(toggle_good, sizeof(toggle_good), "iw dev %s set power_save on", iface); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tuning/wifi.cpp:51:51: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4089 [-Wformat-truncation=] 51 | snprintf(toggle_bad, sizeof(toggle_bad), "iw dev %s set power_save off", iface); | ^~ tuning/wifi.cpp:51:10: note: 'snprintf' output between 27 and 4122 bytes into a destination of size 4096 51 | snprintf(toggle_bad, sizeof(toggle_bad), "iw dev %s set power_save off", iface); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ wakeup/wakeup_ethernet.cpp: In constructor 'ethernet_wakeup::ethernet_wakeup(const char*, const char*)': wakeup/wakeup_ethernet.cpp:53:68: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4078 [-Wformat-truncation=] 53 | snprintf(toggle_enable, sizeof(toggle_enable), "echo 'enabled' > '%s';", eth_path); | ^~ wakeup/wakeup_ethernet.cpp:53:10: note: 'snprintf' output between 21 and 4116 bytes into a destination of size 4096 53 | snprintf(toggle_enable, sizeof(toggle_enable), "echo 'enabled' > '%s';", eth_path); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ wakeup/wakeup_ethernet.cpp:54:71: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4077 [-Wformat-truncation=] 54 | snprintf(toggle_disable, sizeof(toggle_disable), "echo 'disabled' > '%s';", eth_path); | ^~ wakeup/wakeup_ethernet.cpp:54:10: note: 'snprintf' output between 22 and 4117 bytes into a destination of size 4096 54 | snprintf(toggle_disable, sizeof(toggle_disable), "echo 'disabled' > '%s';", eth_path); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ wakeup/wakeup_usb.cpp: In constructor 'usb_wakeup::usb_wakeup(const char*, const char*)': wakeup/wakeup_usb.cpp:53:68: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4078 [-Wformat-truncation=] 53 | snprintf(toggle_enable, sizeof(toggle_enable), "echo 'enabled' > '%s';", usb_path); | ^~ wakeup/wakeup_usb.cpp:53:10: note: 'snprintf' output between 21 and 4116 bytes into a destination of size 4096 53 | snprintf(toggle_enable, sizeof(toggle_enable), "echo 'enabled' > '%s';", usb_path); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ wakeup/wakeup_usb.cpp:54:71: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4077 [-Wformat-truncation=] 54 | snprintf(toggle_disable, sizeof(toggle_disable), "echo 'disabled' > '%s';", usb_path); | ^~ wakeup/wakeup_usb.cpp:54:10: note: 'snprintf' output between 22 and 4117 bytes into a destination of size 4096 54 | snprintf(toggle_disable, sizeof(toggle_disable), "echo 'disabled' > '%s';", usb_path); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CXXLD powertop make[4]: Leaving directory '/home/buildroot/autobuild/instance-0/output-1/build/powertop-2.13/src' make[3]: Leaving directory '/home/buildroot/autobuild/instance-0/output-1/build/powertop-2.13/src' Making all in po make[3]: Entering directory '/home/buildroot/autobuild/instance-0/output-1/build/powertop-2.13/po' make[3]: Nothing to be done for 'all'. make[3]: Leaving directory '/home/buildroot/autobuild/instance-0/output-1/build/powertop-2.13/po' Making all in doc make[3]: Entering directory '/home/buildroot/autobuild/instance-0/output-1/build/powertop-2.13/doc' make[3]: Nothing to be done for 'all'. make[3]: Leaving directory '/home/buildroot/autobuild/instance-0/output-1/build/powertop-2.13/doc' Making all in scripts/bash-completion make[3]: Entering directory '/home/buildroot/autobuild/instance-0/output-1/build/powertop-2.13/scripts/bash-completion' make[3]: Nothing to be done for 'all'. make[3]: Leaving directory '/home/buildroot/autobuild/instance-0/output-1/build/powertop-2.13/scripts/bash-completion' make[3]: Entering directory '/home/buildroot/autobuild/instance-0/output-1/build/powertop-2.13' make[3]: Leaving directory '/home/buildroot/autobuild/instance-0/output-1/build/powertop-2.13' make[2]: Leaving directory '/home/buildroot/autobuild/instance-0/output-1/build/powertop-2.13' make[1]: Leaving directory '/home/buildroot/autobuild/instance-0/output-1/build/powertop-2.13' >>> powertop 2.13 Installing to target PATH="/home/buildroot/autobuild/instance-0/output-1/host/bin:/home/buildroot/autobuild/instance-0/output-1/host/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" /usr/bin/make -j4 DESTDIR=/home/buildroot/autobuild/instance-0/output-1/target install -C /home/buildroot/autobuild/instance-0/output-1/build/powertop-2.13/ make[1]: Entering directory '/home/buildroot/autobuild/instance-0/output-1/build/powertop-2.13' Making install in traceevent make[2]: Entering directory '/home/buildroot/autobuild/instance-0/output-1/build/powertop-2.13/traceevent' make[3]: Entering directory '/home/buildroot/autobuild/instance-0/output-1/build/powertop-2.13/traceevent' make[3]: Nothing to be done for 'install-exec-am'. make[3]: Nothing to be done for 'install-data-am'. make[3]: Leaving directory '/home/buildroot/autobuild/instance-0/output-1/build/powertop-2.13/traceevent' make[2]: Leaving directory '/home/buildroot/autobuild/instance-0/output-1/build/powertop-2.13/traceevent' Making install in src make[2]: Entering directory '/home/buildroot/autobuild/instance-0/output-1/build/powertop-2.13/src' /usr/bin/make install-am make[3]: Entering directory '/home/buildroot/autobuild/instance-0/output-1/build/powertop-2.13/src' make[4]: Entering directory '/home/buildroot/autobuild/instance-0/output-1/build/powertop-2.13/src' make[4]: Nothing to be done for 'install-data-am'. /bin/mkdir -p '/home/buildroot/autobuild/instance-0/output-1/target/usr/sbin' /bin/bash ../libtool --mode=install /usr/bin/install -c powertop '/home/buildroot/autobuild/instance-0/output-1/target/usr/sbin' libtool: install: /usr/bin/install -c powertop /home/buildroot/autobuild/instance-0/output-1/target/usr/sbin/powertop make[4]: Leaving directory '/home/buildroot/autobuild/instance-0/output-1/build/powertop-2.13/src' make[3]: Leaving directory '/home/buildroot/autobuild/instance-0/output-1/build/powertop-2.13/src' make[2]: Leaving directory '/home/buildroot/autobuild/instance-0/output-1/build/powertop-2.13/src' Making install in po make[2]: Entering directory '/home/buildroot/autobuild/instance-0/output-1/build/powertop-2.13/po' if test "powertop" = "gettext-tools"; then \ /bin/mkdir -p /home/buildroot/autobuild/instance-0/output-1/target/usr/share/gettext/po; \ for file in Makefile.in.in remove-potcdate.sin quot.sed boldquot.sed en@quot.header en@boldquot.header insert-header.sin Rules-quot Makevars.template; do \ /usr/bin/install -c -m 644 ./$file \ /home/buildroot/autobuild/instance-0/output-1/target/usr/share/gettext/po/$file; \ done; \ for file in Makevars; do \ rm -f /home/buildroot/autobuild/instance-0/output-1/target/usr/share/gettext/po/$file; \ done; \ else \ : ; \ fi make[2]: Leaving directory '/home/buildroot/autobuild/instance-0/output-1/build/powertop-2.13/po' Making install in doc make[2]: Entering directory '/home/buildroot/autobuild/instance-0/output-1/build/powertop-2.13/doc' make[3]: Entering directory '/home/buildroot/autobuild/instance-0/output-1/build/powertop-2.13/doc' make[3]: Nothing to be done for 'install-exec-am'. /bin/mkdir -p '/home/buildroot/autobuild/instance-0/output-1/target/usr/share/man/man8' /usr/bin/install -c -m 644 powertop.8 '/home/buildroot/autobuild/instance-0/output-1/target/usr/share/man/man8' make[3]: Leaving directory '/home/buildroot/autobuild/instance-0/output-1/build/powertop-2.13/doc' make[2]: Leaving directory '/home/buildroot/autobuild/instance-0/output-1/build/powertop-2.13/doc' Making install in scripts/bash-completion make[2]: Entering directory '/home/buildroot/autobuild/instance-0/output-1/build/powertop-2.13/scripts/bash-completion' make[3]: Entering directory '/home/buildroot/autobuild/instance-0/output-1/build/powertop-2.13/scripts/bash-completion' make[3]: Nothing to be done for 'install-exec-am'. /bin/mkdir -p '/home/buildroot/autobuild/instance-0/output-1/target/usr/share/bash-completion/completions' /usr/bin/install -c -m 644 powertop '/home/buildroot/autobuild/instance-0/output-1/target/usr/share/bash-completion/completions' make[3]: Leaving directory '/home/buildroot/autobuild/instance-0/output-1/build/powertop-2.13/scripts/bash-completion' make[2]: Leaving directory '/home/buildroot/autobuild/instance-0/output-1/build/powertop-2.13/scripts/bash-completion' make[2]: Entering directory '/home/buildroot/autobuild/instance-0/output-1/build/powertop-2.13' make[3]: Entering directory '/home/buildroot/autobuild/instance-0/output-1/build/powertop-2.13' make[3]: Nothing to be done for 'install-exec-am'. make[3]: Nothing to be done for 'install-data-am'. make[3]: Leaving directory '/home/buildroot/autobuild/instance-0/output-1/build/powertop-2.13' make[2]: Leaving directory '/home/buildroot/autobuild/instance-0/output-1/build/powertop-2.13' make[1]: Leaving directory '/home/buildroot/autobuild/instance-0/output-1/build/powertop-2.13' make: *** No rule to make target 'host-python', needed by '/home/buildroot/autobuild/instance-0/output-1/build/host-python-cython-0.29.27/.stamp_configured'. Stop. make: Leaving directory '/home/buildroot/autobuild/instance-0/buildroot'