devices/alsa.cpp: In member function 'virtual const char* alsa::human_name()': devices/alsa.cpp:205:40: warning: ' (' directive output may be truncated writing 2 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] snprintf(temp_buf, sizeof(temp_buf), "%s (%s)", humanname, guilty); ^~~~~~~~~ devices/alsa.cpp:205:11: note: 'snprintf' output between 4 and 8194 bytes into a destination of size 4096 snprintf(temp_buf, sizeof(temp_buf), "%s (%s)", humanname, guilty); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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=] snprintf(humanname, sizeof(humanname), _("Audio codec %s: %s"), _name, vendor); ~ devices/../parameters/../lib.h:41:23: note: in definition of macro '_' #define _(STRING) (STRING) ^~~~~~ devices/alsa.cpp:81:11: note: 'snprintf' output 15 or more bytes (assuming 4110) into a destination of size 4096 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=] snprintf(humanname, sizeof(humanname), _("Audio codec %s: %s"), _name, model); ~ devices/../parameters/../lib.h:41:23: note: in definition of macro '_' #define _(STRING) (STRING) ^~~~~~ devices/alsa.cpp:79:11: note: 'snprintf' output 15 or more bytes (assuming 4110) into a destination of size 4096 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=] snprintf(humanname, sizeof(humanname), _("Audio codec %s: %s (%s)"), name, model, vendor); devices/../parameters/../lib.h:41:23: note: in definition of macro '_' #define _(STRING) (STRING) ^~~~~~ devices/alsa.cpp:77:11: note: 'snprintf' output between 18 and 12303 bytes into a destination of size 4096 snprintf(humanname, sizeof(humanname), _("Audio codec %s: %s (%s)"), name, model, vendor); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CXX devices/powertop-device.o devices/backlight.cpp: In member function 'virtual void backlight::start_measurement()': devices/backlight.cpp:61:39: warning: '/max_brightness' directive output may be truncated writing 15 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] 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 snprintf(filename, sizeof(filename), "%s/max_brightness", sysfs_path); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ devices/backlight.cpp:68:39: warning: '/actual_brightness' directive output may be truncated writing 18 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] 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 snprintf(filename, sizeof(filename), "%s/actual_brightness", sysfs_path); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CXX devices/powertop-gpu_rapl_device.o devices/backlight.cpp: In member function 'virtual void backlight::end_measurement()': devices/backlight.cpp:125:39: warning: '/actual_brightness' directive output may be truncated writing 18 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] 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 snprintf(filename, sizeof(filename), "%s/actual_brightness", sysfs_path); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ devices/backlight.cpp:140:41: warning: '-power' directive output may be truncated writing 6 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] 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 snprintf(powername, sizeof(powername), "%s-power", name); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ devices/backlight.cpp: In member function 'virtual double backlight::power_usage(result_bundle*, parameter_bundle*)': devices/backlight.cpp:217:22: warning: '-power' directive writing 6 bytes into a region of size between 1 and 4096 [-Wformat-overflow=] sprintf(powername, "%s-power", name); ^~~~~~~~~~ devices/backlight.cpp:217:10: note: 'sprintf' output between 7 and 4102 bytes into a destination of size 4096 sprintf(powername, "%s-power", name); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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:42: warning: '/device' directive output may be truncated writing 7 bytes into a region of size between 1 and 4097 [-Wformat-truncation=] 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 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:39: warning: '/hard' directive output may be truncated writing 5 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] 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 snprintf(filename, sizeof(filename), "%s/hard", sysfs_path); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ devices/rfkill.cpp:90:39: warning: '/soft' directive output may be truncated writing 5 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] 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 snprintf(filename, sizeof(filename), "%s/soft", sysfs_path); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ devices/rfkill.cpp: In member function 'virtual void rfkill::end_measurement()': devices/rfkill.cpp:103:39: warning: '/hard' directive output may be truncated writing 5 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] 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 snprintf(filename, sizeof(filename), "%s/hard", sysfs_path); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ devices/rfkill.cpp:109:39: warning: '/soft' directive output may be truncated writing 5 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] 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 snprintf(filename, sizeof(filename), "%s/soft", sysfs_path); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CXX devices/powertop-thinkpad-light.o devices/runtime_pm.cpp: In member function 'virtual void runtime_pmdevice::start_measurement()': devices/runtime_pm.cpp:69:39: warning: '/power/runtime_suspended_time' directive output may be truncated writing 29 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] 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 snprintf(filename, sizeof(filename), "%s/power/runtime_suspended_time", sysfs_path); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ devices/runtime_pm.cpp:76:39: warning: '/power/runtime_active_time' directive output may be truncated writing 26 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] 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 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:39: warning: '/power/runtime_suspended_time' directive output may be truncated writing 29 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] 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 snprintf(filename, sizeof(filename), "%s/power/runtime_suspended_time", sysfs_path); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ devices/runtime_pm.cpp:96:39: warning: '/power/runtime_active_time' directive output may be truncated writing 26 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] 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 snprintf(filename, sizeof(filename), "%s/power/runtime_active_time", sysfs_path); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CXX devices/powertop-usb.o CXX measurement/powertop-acpi.o CXX measurement/powertop-extech.o CXX measurement/powertop-measurement.o CXX measurement/powertop-sysfs.o devices/usb.cpp: In member function 'virtual void usbdevice::start_measurement()': devices/usb.cpp:129:39: warning: '/power/active_duration' directive output may be truncated writing 22 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] 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 snprintf(fullpath, sizeof(fullpath), "%s/power/active_duration", sysfs_path); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ devices/usb.cpp:136:39: warning: '/power/connected_duration' directive output may be truncated writing 25 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] 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 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:39: warning: '/power/active_duration' directive output may be truncated writing 22 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] 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 snprintf(fullpath, sizeof(fullpath), "%s/power/active_duration", sysfs_path); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ devices/usb.cpp:156:39: warning: '/power/connected_duration' directive output may be truncated writing 25 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] 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 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=] snprintf(humanname, sizeof(humanname), _("USB device: %s"), product); ~ devices/../parameters/../lib.h:41:23: note: in definition of macro '_' #define _(STRING) (STRING) ^~~~~~ devices/usb.cpp:96:11: note: 'snprintf' output between 13 and 4108 bytes into a destination of size 4096 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=] snprintf(humanname, sizeof(humanname), _("USB device: %s"), vendor); ~ devices/../parameters/../lib.h:41:23: note: in definition of macro '_' #define _(STRING) (STRING) ^~~~~~ devices/usb.cpp:98:11: note: 'snprintf' output between 13 and 4108 bytes into a destination of size 4096 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=] snprintf(humanname, sizeof(humanname), _("USB device: %s (%s)"), product, vendor); ~ devices/../parameters/../lib.h:41:23: note: in definition of macro '_' #define _(STRING) (STRING) ^~~~~~ devices/usb.cpp:94:11: note: 'snprintf' output between 16 and 8206 bytes into a destination of size 4096 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:45: warning: '/power/active_duration' directive output may be truncated writing 22 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] 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 snprintf(device_name, sizeof(device_name), "%s/power/active_duration", filename); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ devices/usb.cpp:230:45: warning: '/idVendor' directive output may be truncated writing 9 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] 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 snprintf(device_name, sizeof(device_name), "%s/idVendor", filename); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ devices/usb.cpp:235:45: warning: '/idProduct' directive output may be truncated writing 10 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] 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 snprintf(device_name, sizeof(device_name), "%s/idProduct", filename); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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:10: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'std::vector::size_type' {aka 'unsigned int'} [-Wformat=] printf("To show power estimates do %ld measurement(s) connected to battery only\n", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ (3 * all_parameters.parameters.size()) - past_results.size()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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 report/powertop-report-data-html.o CXX process/powertop-work.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:45: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4081 [-Wformat-truncation=] 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 snprintf(toggle_good, sizeof(toggle_good), "echo 'auto' > '%s';", runtime_path); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tuning/runtime.cpp:87:43: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4083 [-Wformat-truncation=] 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 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:41: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size between 3822 and 4077 [-Wformat-truncation=] 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 snprintf(filename, sizeof(filename), "/sys/bus/%s/devices/%s/%s/power/control", bus, entry->d_name, port); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tuning/runtime.cpp:171:41: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size between 3822 and 4077 [-Wformat-truncation=] 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 snprintf(filename, sizeof(filename), "/sys/bus/%s/devices/%s/%s", bus, entry->d_name, port); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tuning/runtime.cpp:192:41: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4085 [-Wformat-truncation=] 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 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:45: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4090 [-Wformat-truncation=] 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 snprintf(toggle_good, sizeof(toggle_good), "echo '%s' > '%s';", target_value, sysfs_path); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tuning/tuningsysfs.cpp:51:43: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4090 [-Wformat-truncation=] 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 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=] snprintf(desc, sizeof(desc), _("Autosuspend for USB device %s [%s]"), product, vendor); ~ tuning/../lib.h:41:23: note: in definition of macro '_' #define _(STRING) (STRING) ^~~~~~ tuning/tuningusb.cpp:71:11: note: 'snprintf' output between 31 and 4125 bytes into a destination of size 4096 snprintf(desc, sizeof(desc), _("Autosuspend for USB device %s [%s]"), product, vendor); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tuning/tuningusb.cpp:77:45: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4081 [-Wformat-truncation=] 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 snprintf(toggle_good, sizeof(toggle_good), "echo 'auto' > '%s';", usb_path); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tuning/tuningusb.cpp:78:43: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4083 [-Wformat-truncation=] 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 snprintf(toggle_bad, sizeof(toggle_bad), "echo 'on' > '%s';", usb_path); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CXX wakeup/powertop-wakeup.o CXX wakeup/powertop-waketab.o tuning/tuningi2c.cpp: In constructor 'i2c_tunable::i2c_tunable(const char*, const char*, bool)': tuning/tuningi2c.cpp:61:45: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4081 [-Wformat-truncation=] 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 snprintf(toggle_good, sizeof(toggle_good), "echo 'auto' > '%s';", i2c_path); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tuning/tuningi2c.cpp:62:43: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4083 [-Wformat-truncation=] 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 snprintf(toggle_bad, sizeof(toggle_bad), "echo 'on' > '%s';", i2c_path); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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=] sprintf(desc, _("Wireless Power Saving for interface %s"), iface); tuning/../lib.h:41:23: note: in definition of macro '_' #define _(STRING) (STRING) ^~~~~~ tuning/wifi.cpp:48:9: note: 'sprintf' output between 37 and 4132 bytes into a destination of size 4096 sprintf(desc, _("Wireless Power Saving for interface %s"), iface); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tuning/wifi.cpp:50:45: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4089 [-Wformat-truncation=] 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 snprintf(toggle_good, sizeof(toggle_good), "iw dev %s set power_save on", iface); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tuning/wifi.cpp:51:43: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4089 [-Wformat-truncation=] 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 snprintf(toggle_bad, sizeof(toggle_bad), "iw dev %s set power_save off", iface); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CXX wakeup/powertop-wakeup_ethernet.o CXX wakeup/powertop-wakeup_usb.o wakeup/wakeup_ethernet.cpp: In constructor 'ethernet_wakeup::ethernet_wakeup(const char*, const char*)': wakeup/wakeup_ethernet.cpp:53:49: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4078 [-Wformat-truncation=] 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 snprintf(toggle_enable, sizeof(toggle_enable), "echo 'enabled' > '%s';", eth_path); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ wakeup/wakeup_ethernet.cpp:54:51: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4077 [-Wformat-truncation=] 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 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:49: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4078 [-Wformat-truncation=] 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 snprintf(toggle_enable, sizeof(toggle_enable), "echo 'enabled' > '%s';", usb_path); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ wakeup/wakeup_usb.cpp:54:51: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4077 [-Wformat-truncation=] 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 snprintf(toggle_disable, sizeof(toggle_disable), "echo 'disabled' > '%s';", usb_path); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CXXLD powertop make[4]: Leaving directory '/home/test/autobuild/run/instance-2/output-1/build/powertop-2.11/src' make[3]: Leaving directory '/home/test/autobuild/run/instance-2/output-1/build/powertop-2.11/src' Making all in po make[3]: Entering directory '/home/test/autobuild/run/instance-2/output-1/build/powertop-2.11/po' make[3]: Nothing to be done for 'all'. make[3]: Leaving directory '/home/test/autobuild/run/instance-2/output-1/build/powertop-2.11/po' Making all in doc make[3]: Entering directory '/home/test/autobuild/run/instance-2/output-1/build/powertop-2.11/doc' make[3]: Nothing to be done for 'all'. make[3]: Leaving directory '/home/test/autobuild/run/instance-2/output-1/build/powertop-2.11/doc' Making all in scripts/bash-completion make[3]: Entering directory '/home/test/autobuild/run/instance-2/output-1/build/powertop-2.11/scripts/bash-completion' make[3]: Nothing to be done for 'all'. make[3]: Leaving directory '/home/test/autobuild/run/instance-2/output-1/build/powertop-2.11/scripts/bash-completion' make[3]: Entering directory '/home/test/autobuild/run/instance-2/output-1/build/powertop-2.11' make[3]: Leaving directory '/home/test/autobuild/run/instance-2/output-1/build/powertop-2.11' make[2]: Leaving directory '/home/test/autobuild/run/instance-2/output-1/build/powertop-2.11' make[1]: Leaving directory '/home/test/autobuild/run/instance-2/output-1/build/powertop-2.11' >>> powertop 2.11 Installing to target PATH="/home/test/autobuild/run/instance-2/output-1/host/bin:/home/test/autobuild/run/instance-2/output-1/host/sbin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games" /usr/bin/make -j4 DESTDIR=/home/test/autobuild/run/instance-2/output-1/target install -C /home/test/autobuild/run/instance-2/output-1/build/powertop-2.11/ make[1]: Entering directory '/home/test/autobuild/run/instance-2/output-1/build/powertop-2.11' Making install in traceevent make[2]: Entering directory '/home/test/autobuild/run/instance-2/output-1/build/powertop-2.11/traceevent' make[3]: Entering directory '/home/test/autobuild/run/instance-2/output-1/build/powertop-2.11/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/test/autobuild/run/instance-2/output-1/build/powertop-2.11/traceevent' make[2]: Leaving directory '/home/test/autobuild/run/instance-2/output-1/build/powertop-2.11/traceevent' Making install in src make[2]: Entering directory '/home/test/autobuild/run/instance-2/output-1/build/powertop-2.11/src' /usr/bin/make install-am make[3]: Entering directory '/home/test/autobuild/run/instance-2/output-1/build/powertop-2.11/src' make[4]: Entering directory '/home/test/autobuild/run/instance-2/output-1/build/powertop-2.11/src' make[4]: Nothing to be done for 'install-data-am'. /bin/mkdir -p '/home/test/autobuild/run/instance-2/output-1/target/usr/sbin' /bin/bash ../libtool --mode=install /usr/bin/install -c powertop '/home/test/autobuild/run/instance-2/output-1/target/usr/sbin' libtool: install: /usr/bin/install -c powertop /home/test/autobuild/run/instance-2/output-1/target/usr/sbin/powertop make[4]: Leaving directory '/home/test/autobuild/run/instance-2/output-1/build/powertop-2.11/src' make[3]: Leaving directory '/home/test/autobuild/run/instance-2/output-1/build/powertop-2.11/src' make[2]: Leaving directory '/home/test/autobuild/run/instance-2/output-1/build/powertop-2.11/src' Making install in po make[2]: Entering directory '/home/test/autobuild/run/instance-2/output-1/build/powertop-2.11/po' if test "powertop" = "gettext-tools"; then \ /bin/mkdir -p /home/test/autobuild/run/instance-2/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/test/autobuild/run/instance-2/output-1/target/usr/share/gettext/po/$file; \ done; \ for file in Makevars; do \ rm -f /home/test/autobuild/run/instance-2/output-1/target/usr/share/gettext/po/$file; \ done; \ else \ : ; \ fi make[2]: Leaving directory '/home/test/autobuild/run/instance-2/output-1/build/powertop-2.11/po' Making install in doc make[2]: Entering directory '/home/test/autobuild/run/instance-2/output-1/build/powertop-2.11/doc' make[3]: Entering directory '/home/test/autobuild/run/instance-2/output-1/build/powertop-2.11/doc' make[3]: Nothing to be done for 'install-exec-am'. /bin/mkdir -p '/home/test/autobuild/run/instance-2/output-1/target/usr/share/man/man8' /usr/bin/install -c -m 644 powertop.8 '/home/test/autobuild/run/instance-2/output-1/target/usr/share/man/man8' make[3]: Leaving directory '/home/test/autobuild/run/instance-2/output-1/build/powertop-2.11/doc' make[2]: Leaving directory '/home/test/autobuild/run/instance-2/output-1/build/powertop-2.11/doc' Making install in scripts/bash-completion make[2]: Entering directory '/home/test/autobuild/run/instance-2/output-1/build/powertop-2.11/scripts/bash-completion' make[3]: Entering directory '/home/test/autobuild/run/instance-2/output-1/build/powertop-2.11/scripts/bash-completion' make[3]: Nothing to be done for 'install-exec-am'. /bin/mkdir -p '/home/test/autobuild/run/instance-2/output-1/target/usr/share/bash-completion/completions' /usr/bin/install -c -m 644 powertop '/home/test/autobuild/run/instance-2/output-1/target/usr/share/bash-completion/completions' make[3]: Leaving directory '/home/test/autobuild/run/instance-2/output-1/build/powertop-2.11/scripts/bash-completion' make[2]: Leaving directory '/home/test/autobuild/run/instance-2/output-1/build/powertop-2.11/scripts/bash-completion' make[2]: Entering directory '/home/test/autobuild/run/instance-2/output-1/build/powertop-2.11' make[3]: Entering directory '/home/test/autobuild/run/instance-2/output-1/build/powertop-2.11' 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/test/autobuild/run/instance-2/output-1/build/powertop-2.11' make[2]: Leaving directory '/home/test/autobuild/run/instance-2/output-1/build/powertop-2.11' make[1]: Leaving directory '/home/test/autobuild/run/instance-2/output-1/build/powertop-2.11' >>> python-aioconsole 0.1.16 Downloading converted 'https://files.pythonhosted.org/packages/70/08/5dbb71777058a4f3b6e61b61ffc5b5021056c4a139e118938773b93e9304/aioconsole-0.1.16.tar.gz' (ANSI_X3.4-1968) -> 'https://files.pythonhosted.org/packages/70/08/5dbb71777058a4f3b6e61b61ffc5b5021056c4a139e118938773b93e9304/aioconsole-0.1.16.tar.gz' (UTF-8) --2020-06-16 05:42:28-- https://files.pythonhosted.org/packages/70/08/5dbb71777058a4f3b6e61b61ffc5b5021056c4a139e118938773b93e9304/aioconsole-0.1.16.tar.gz Resolving files.pythonhosted.org (files.pythonhosted.org)... 151.101.1.63, 151.101.65.63, 151.101.129.63, ... Connecting to files.pythonhosted.org (files.pythonhosted.org)|151.101.1.63|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 13531 (13K) [application/x-tar] Saving to: '/home/test/autobuild/run/instance-2/output-1/build/.aioconsole-0.1.16.tar.gz.scGxUi/output' 0K .......... ... 100% 56.3M=0s 2020-06-16 05:42:28 (56.3 MB/s) - '/home/test/autobuild/run/instance-2/output-1/build/.aioconsole-0.1.16.tar.gz.scGxUi/output' saved [13531/13531] aioconsole-0.1.16.tar.gz: OK (md5: 8eeeee86f96c51d202e69f0e0a56eaad) aioconsole-0.1.16.tar.gz: OK (sha256: a5d98a99539e060f514b96425f19839abc4bc2b487b39cdb76b91df2367c647a) >>> python-aioconsole 0.1.16 Extracting gzip -d -c /home/test/autobuild/run/instance-2/dl/python-aioconsole/aioconsole-0.1.16.tar.gz | tar --strip-components=1 -C /home/test/autobuild/run/instance-2/output-1/build/python-aioconsole-0.1.16 -xf - >>> python-aioconsole 0.1.16 Patching >>> python-aioconsole 0.1.16 Configuring package/pkg-python.mk:26: *** unterminated variable reference. Stop. make: Leaving directory '/home/test/autobuild/run/instance-2/buildroot'