/usr/bin/make all-recursive Making all in traceevent CC event-parse.lo CC parse-filter.lo CC parse-utils.lo CC trace-seq.lo CCLD libtraceevnet.la Making all in src /usr/bin/make all-am CXX powertop-devlist.o CXX powertop-display.o CXX powertop-lib.o CXX powertop-main.o CXX calibrate/powertop-calibrate.o CXX cpu/powertop-abstract_cpu.o CXX cpu/powertop-cpu.o CXX cpu/powertop-cpu_core.o CXX cpu/powertop-cpu_linux.o CXX cpu/powertop-cpu_package.o CXX cpu/powertop-cpu_rapl_device.o CXX cpu/powertop-cpudevice.o CXX cpu/powertop-dram_rapl_device.o CXX cpu/powertop-intel_cpus.o CXX cpu/powertop-intel_gpu.o CXX cpu/rapl/powertop-rapl_interface.o CXX devices/powertop-ahci.o CXX devices/powertop-alsa.o CXX devices/powertop-backlight.o CXX devices/powertop-devfreq.o devices/ahci.cpp: In member function 'virtual void ahci::start_measurement()': devices/ahci.cpp:159:6: warning: '/ahci_alpm_active' directive output may be truncated writing 17 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] void ahci::start_measurement(void) ^~~~ devices/ahci.cpp:164:10: note: 'snprintf' output between 18 and 4113 bytes into a destination of size 4096 snprintf(filename, sizeof(filename), "%s/ahci_alpm_active", sysfs_path); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ devices/ahci.cpp:159:6: warning: '/ahci_alpm_partial' directive output may be truncated writing 18 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] void ahci::start_measurement(void) ^~~~ devices/ahci.cpp:171:11: note: 'snprintf' output between 19 and 4114 bytes into a destination of size 4096 snprintf(filename, sizeof(filename), "%s/ahci_alpm_partial", sysfs_path); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ devices/ahci.cpp:159:6: warning: '/ahci_alpm_slumber' directive output may be truncated writing 18 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] void ahci::start_measurement(void) ^~~~ devices/ahci.cpp:178:11: note: 'snprintf' output between 19 and 4114 bytes into a destination of size 4096 snprintf(filename, sizeof(filename), "%s/ahci_alpm_slumber", sysfs_path); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ devices/ahci.cpp:159:6: warning: '/ahci_alpm_devslp' directive output may be truncated writing 17 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] void ahci::start_measurement(void) ^~~~ devices/ahci.cpp:184:11: note: 'snprintf' output between 18 and 4113 bytes into a destination of size 4096 snprintf(filename, sizeof(filename), "%s/ahci_alpm_devslp", sysfs_path); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ devices/ahci.cpp: In member function 'virtual void ahci::end_measurement()': devices/ahci.cpp:197:6: warning: '/ahci_alpm_active' directive output may be truncated writing 17 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] void ahci::end_measurement(void) ^~~~ devices/ahci.cpp:206:11: note: 'snprintf' output between 18 and 4113 bytes into a destination of size 4096 snprintf(filename, sizeof(filename), "%s/ahci_alpm_active", sysfs_path); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ devices/ahci.cpp:197:6: warning: '/ahci_alpm_partial' directive output may be truncated writing 18 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] void ahci::end_measurement(void) ^~~~ devices/ahci.cpp:212:11: note: 'snprintf' output between 19 and 4114 bytes into a destination of size 4096 snprintf(filename, sizeof(filename), "%s/ahci_alpm_partial", sysfs_path); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ devices/ahci.cpp:197:6: warning: '/ahci_alpm_slumber' directive output may be truncated writing 18 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] void ahci::end_measurement(void) ^~~~ devices/ahci.cpp:218:11: note: 'snprintf' output between 19 and 4114 bytes into a destination of size 4096 snprintf(filename, sizeof(filename), "%s/ahci_alpm_slumber", sysfs_path); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ devices/ahci.cpp:197:6: warning: '/ahci_alpm_devslp' directive output may be truncated writing 17 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] void ahci::end_measurement(void) ^~~~ devices/ahci.cpp:224:11: note: 'snprintf' output between 18 and 4113 bytes into a destination of size 4096 snprintf(filename, sizeof(filename), "%s/ahci_alpm_devslp", sysfs_path); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ devices/ahci.cpp:197:6: warning: '-active' directive output may be truncated writing 7 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] void ahci::end_measurement(void) ^~~~ devices/ahci.cpp:248:10: note: 'snprintf' output between 8 and 4103 bytes into a destination of size 4096 snprintf(powername, sizeof(powername), "%s-active", name); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ devices/ahci.cpp:197:6: warning: '-partial' directive output may be truncated writing 8 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] void ahci::end_measurement(void) ^~~~ devices/ahci.cpp:255:10: note: 'snprintf' output between 9 and 4104 bytes into a destination of size 4096 snprintf(powername, sizeof(powername), "%s-partial", name); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ devices/ahci.cpp:197:6: warning: '-slumber' directive output may be truncated writing 8 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] void ahci::end_measurement(void) ^~~~ devices/ahci.cpp:262:10: note: 'snprintf' output between 9 and 4104 bytes into a destination of size 4096 snprintf(powername, sizeof(powername), "%s-slumber", name); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ devices/ahci.cpp:197:6: warning: '-devslp' directive output may be truncated writing 7 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] void ahci::end_measurement(void) ^~~~ devices/ahci.cpp:269:10: note: 'snprintf' output between 8 and 4103 bytes into a destination of size 4096 snprintf(powername, sizeof(powername), "%s-devslp", name); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ devices/ahci.cpp: In constructor 'ahci::ahci(char*, char*)': devices/ahci.cpp:116:1: warning: '-active' directive output may be truncated writing 7 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] ahci::ahci(char *_name, char *path): device() ^~~~ devices/ahci.cpp:139:10: note: 'snprintf' output between 8 and 4103 bytes into a destination of size 4096 snprintf(buffer, sizeof(buffer), "%s-active", name); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ devices/ahci.cpp:116:1: warning: '-partial' directive output may be truncated writing 8 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] ahci::ahci(char *_name, char *path): device() ^~~~ devices/ahci.cpp:142:10: note: 'snprintf' output between 9 and 4104 bytes into a destination of size 4096 snprintf(buffer, sizeof(buffer), "%s-partial", name); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ devices/ahci.cpp:116:1: warning: '-slumber' directive output may be truncated writing 8 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] ahci::ahci(char *_name, char *path): device() ^~~~ devices/ahci.cpp:145:10: note: 'snprintf' output between 9 and 4104 bytes into a destination of size 4096 snprintf(buffer, sizeof(buffer), "%s-slumber", name); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ devices/ahci.cpp:116:1: warning: '-devslp' directive output may be truncated writing 7 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] ahci::ahci(char *_name, char *path): device() ^~~~ devices/ahci.cpp:148:10: note: 'snprintf' output between 8 and 4103 bytes into a destination of size 4096 snprintf(buffer, sizeof(buffer), "%s-devslp", name); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CXX devices/powertop-device.o devices/alsa.cpp: In member function 'virtual void alsa::start_measurement()': devices/alsa.cpp:84:6: warning: '/power_off_acct' directive output may be truncated writing 15 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] void alsa::start_measurement(void) ^~~~ devices/alsa.cpp:89:10: note: 'snprintf' output between 16 and 4111 bytes into a destination of size 4096 snprintf(filename, sizeof(filename), "%s/power_off_acct", sysfs_path); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ devices/alsa.cpp:84:6: warning: '/power_on_acct' directive output may be truncated writing 14 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] void alsa::start_measurement(void) ^~~~ devices/alsa.cpp:96:11: note: 'snprintf' output between 15 and 4110 bytes into a destination of size 4096 snprintf(filename, sizeof(filename), "%s/power_on_acct", sysfs_path); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ devices/alsa.cpp: In member function 'virtual void alsa::end_measurement()': devices/alsa.cpp:109:6: warning: '/power_off_acct' directive output may be truncated writing 15 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] void alsa::end_measurement(void) ^~~~ devices/alsa.cpp:115:10: note: 'snprintf' output between 16 and 4111 bytes into a destination of size 4096 snprintf(filename, sizeof(filename), "%s/power_off_acct", sysfs_path); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ devices/alsa.cpp:109:6: warning: '/power_on_acct' directive output may be truncated writing 14 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] void alsa::end_measurement(void) ^~~~ devices/alsa.cpp:122:11: note: 'snprintf' output between 15 and 4110 bytes into a destination of size 4096 snprintf(filename, sizeof(filename), "%s/power_on_acct", sysfs_path); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ devices/alsa.cpp: In member function 'virtual const char* alsa::human_name()': devices/alsa.cpp:201:14: warning: ' (' directive output may be truncated writing 2 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] const char * alsa::human_name(void) ^~~~ 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); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CXX devices/powertop-gpu_rapl_device.o devices/backlight.cpp: In member function 'virtual void backlight::start_measurement()': devices/backlight.cpp:56:6: warning: '/max_brightness' directive output may be truncated writing 15 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] void backlight::start_measurement(void) ^~~~~~~~~ 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:56:6: warning: '/actual_brightness' directive output may be truncated writing 18 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] void backlight::start_measurement(void) ^~~~~~~~~ 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); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ devices/backlight.cpp: In member function 'virtual void backlight::end_measurement()': devices/backlight.cpp:117:6: warning: '/actual_brightness' directive output may be truncated writing 18 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] void backlight::end_measurement(void) ^~~~~~~~~ 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:117:6: warning: '-power' directive output may be truncated writing 6 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] void backlight::end_measurement(void) ^~~~~~~~~ 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:177:8: warning: '-power' directive writing 6 bytes into a region of size between 1 and 4096 [-Wformat-overflow=] double backlight::power_usage(struct result_bundle *result, struct parameter_bundle *bundle) ^~~~~~~~~ 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 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:73:6: warning: '/hard' directive output may be truncated writing 5 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] void rfkill::start_measurement(void) ^~~~~~ 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:73:6: warning: '/soft' directive output may be truncated writing 5 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] void rfkill::start_measurement(void) ^~~~~~ 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:98:6: warning: '/hard' directive output may be truncated writing 5 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] void rfkill::end_measurement(void) ^~~~~~ 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:98:6: warning: '/soft' directive output may be truncated writing 5 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] void rfkill::end_measurement(void) ^~~~~~ 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 CXX devices/powertop-usb.o devices/runtime_pm.cpp: In member function 'virtual void runtime_pmdevice::start_measurement()': devices/runtime_pm.cpp:59:6: warning: '/power/runtime_suspended_time' directive output may be truncated writing 29 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] void runtime_pmdevice::start_measurement(void) ^~~~~~~~~~~~~~~~ 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:59:6: warning: '/power/runtime_active_time' directive output may be truncated writing 26 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] void runtime_pmdevice::start_measurement(void) ^~~~~~~~~~~~~~~~ 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:84:6: warning: '/power/runtime_suspended_time' directive output may be truncated writing 29 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] void runtime_pmdevice::end_measurement(void) ^~~~~~~~~~~~~~~~ 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:84:6: warning: '/power/runtime_active_time' directive output may be truncated writing 26 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] void runtime_pmdevice::end_measurement(void) ^~~~~~~~~~~~~~~~ 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 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:119:6: warning: '/power/active_duration' directive output may be truncated writing 22 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] void usbdevice::start_measurement(void) ^~~~~~~~~ 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:119:6: warning: '/power/connected_duration' directive output may be truncated writing 25 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] void usbdevice::start_measurement(void) ^~~~~~~~~ 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:144:6: warning: '/power/active_duration' directive output may be truncated writing 22 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] void usbdevice::end_measurement(void) ^~~~~~~~~ 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:144:6: warning: '/power/connected_duration' directive output may be truncated writing 25 bytes into a region of size between 1 and 4096 [-Wformat-truncation=] void usbdevice::end_measurement(void) ^~~~~~~~~ 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); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CXX measurement/powertop-sysfs.o CXX measurement/powertop-opal-sensors.o CXX parameters/powertop-learn.o CXX parameters/powertop-parameters.o CXX parameters/powertop-persistent.o CXX perf/powertop-perf.o CXX perf/powertop-perf_bundle.o CXX process/powertop-do_process.o CXX process/powertop-interrupt.o CXX process/powertop-powerconsumer.o CXX process/powertop-process.o CXX process/powertop-processdevice.o CXX process/powertop-timer.o CXX process/powertop-work.o CXX report/powertop-report-data-html.o CXX report/powertop-report-formatter-base.o CXX report/powertop-report-formatter-csv.o CXX report/powertop-report-formatter-html.o CXX report/powertop-report-maker.o CXX report/powertop-report.o CXX tuning/powertop-bluetooth.o CXX tuning/powertop-ethernet.o CC tuning/powertop-iw.o CXX tuning/powertop-runtime.o CXX tuning/powertop-tunable.o CXX tuning/powertop-tuning.o CXX tuning/powertop-tuningsysfs.o CXX tuning/powertop-tuningusb.o tuning/runtime.cpp: In constructor 'runtime_tunable::runtime_tunable(const char*, const char*, const char*)': tuning/runtime.cpp:42:1: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4081 [-Wformat-truncation=] runtime_tunable::runtime_tunable(const char *path, const char *bus, const char *dev) : tunable("", 0.4, _("Good"), _("Bad"), _("Unknown")) ^~~~~~~~~~~~~~~ tuning/runtime.cpp:81: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:42:1: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4083 [-Wformat-truncation=] runtime_tunable::runtime_tunable(const char *path, const char *bus, const char *dev) : tunable("", 0.4, _("Good"), _("Bad"), _("Unknown")) ^~~~~~~~~~~~~~~ tuning/runtime.cpp:82: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); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CXX tuning/powertop-tuningi2c.o tuning/tuningsysfs.cpp: In constructor 'sysfs_tunable::sysfs_tunable(const char*, const char*, const char*)': tuning/tuningsysfs.cpp:45:1: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4090 [-Wformat-truncation=] sysfs_tunable::sysfs_tunable(const char *str, const char *_sysfs_path, const char *_target_content) : tunable(str, 1.0, _("Good"), _("Bad"), _("Unknown")) ^~~~~~~~~~~~~ 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:45:1: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4090 [-Wformat-truncation=] sysfs_tunable::sysfs_tunable(const char *str, const char *_sysfs_path, const char *_target_content) : tunable(str, 1.0, _("Good"), _("Bad"), _("Unknown")) ^~~~~~~~~~~~~ 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 tuning/tuningusb.cpp: In constructor 'usb_tunable::usb_tunable(const char*, const char*)': tuning/tuningusb.cpp:39:1: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4081 [-Wformat-truncation=] usb_tunable::usb_tunable(const char *path, const char *name) : tunable("", 0.9, _("Good"), _("Bad"), _("Unknown")) ^~~~~~~~~~~ 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:39:1: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4083 [-Wformat-truncation=] usb_tunable::usb_tunable(const char *path, const char *name) : tunable("", 0.9, _("Good"), _("Bad"), _("Unknown")) ^~~~~~~~~~~ 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 tuning/tuningi2c.cpp: In constructor 'i2c_tunable::i2c_tunable(const char*, const char*, bool)': tuning/tuningi2c.cpp:35:1: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4081 [-Wformat-truncation=] i2c_tunable::i2c_tunable(const char *path, const char *name, bool is_adapter) : tunable("", 0.9, _("Good"), _("Bad"), _("Unknown")) ^~~~~~~~~~~ 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:35:1: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4083 [-Wformat-truncation=] i2c_tunable::i2c_tunable(const char *path, const char *name, bool is_adapter) : tunable("", 0.9, _("Good"), _("Bad"), _("Unknown")) ^~~~~~~~~~~ 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); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CXX wakeup/powertop-waketab.o CXX wakeup/powertop-wakeup_ethernet.o tuning/wifi.cpp: In constructor 'wifi_tunable::wifi_tunable(const char*)': tuning/wifi.cpp:45:1: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4089 [-Wformat-truncation=] wifi_tunable::wifi_tunable(const char *_iface) : tunable("", 1.5, _("Good"), _("Bad"), _("Unknown")) ^~~~~~~~~~~~ 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:45:1: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4089 [-Wformat-truncation=] wifi_tunable::wifi_tunable(const char *_iface) : tunable("", 1.5, _("Good"), _("Bad"), _("Unknown")) ^~~~~~~~~~~~ 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_usb.o In file included from wakeup/wakeup_ethernet.cpp:45:0: wakeup/wakeup_ethernet.h:35:16: error: 'PATH_MAX' was not declared in this scope char eth_path[PATH_MAX]; ^~~~~~~~ wakeup/wakeup_ethernet.h:35:16: note: suggested alternative: 'INT8_MAX' char eth_path[PATH_MAX]; ^~~~~~~~ INT8_MAX wakeup/wakeup_ethernet.cpp: In constructor 'ethernet_wakeup::ethernet_wakeup(const char*, const char*)': wakeup/wakeup_ethernet.cpp:52:11: error: 'eth_path' was not declared in this scope snprintf(eth_path, sizeof(eth_path), "/sys/class/net/%s/device/power/wakeup", iface); ^~~~~~~~ wakeup/wakeup_ethernet.cpp:52:11: note: suggested alternative: 'realpath' snprintf(eth_path, sizeof(eth_path), "/sys/class/net/%s/device/power/wakeup", iface); ^~~~~~~~ realpath wakeup/wakeup_ethernet.cpp: In member function 'virtual int ethernet_wakeup::wakeup_value()': wakeup/wakeup_ethernet.cpp:61:30: error: 'eth_path' was not declared in this scope content = read_sysfs_string(eth_path); ^~~~~~~~ wakeup/wakeup_ethernet.cpp:61:30: note: suggested alternative: 'realpath' content = read_sysfs_string(eth_path); ^~~~~~~~ realpath wakeup/wakeup_ethernet.cpp: In member function 'virtual void ethernet_wakeup::wakeup_toggle()': wakeup/wakeup_ethernet.cpp:75:15: error: 'eth_path' was not declared in this scope write_sysfs(eth_path, "disabled"); ^~~~~~~~ wakeup/wakeup_ethernet.cpp:75:15: note: suggested alternative: 'realpath' write_sysfs(eth_path, "disabled"); ^~~~~~~~ realpath wakeup/wakeup_ethernet.cpp:79:14: error: 'eth_path' was not declared in this scope write_sysfs(eth_path, "enabled"); ^~~~~~~~ wakeup/wakeup_ethernet.cpp:79:14: note: suggested alternative: 'realpath' write_sysfs(eth_path, "enabled"); ^~~~~~~~ realpath wakeup/wakeup_ethernet.cpp: In function 'void wakeup_eth_callback(const char*)': wakeup/wakeup_ethernet.cpp:97:16: error: 'PATH_MAX' was not declared in this scope char filename[PATH_MAX]; ^~~~~~~~ wakeup/wakeup_ethernet.cpp:97:16: note: suggested alternative: 'INT8_MAX' char filename[PATH_MAX]; ^~~~~~~~ INT8_MAX wakeup/wakeup_ethernet.cpp:99:11: error: 'filename' was not declared in this scope snprintf(filename, sizeof(filename), "/sys/class/net/%s/device/power/wakeup", d_name); ^~~~~~~~ wakeup/wakeup_ethernet.cpp:99:11: note: suggested alternative: 'basename' snprintf(filename, sizeof(filename), "/sys/class/net/%s/device/power/wakeup", d_name); ^~~~~~~~ basename make[5]: *** [wakeup/powertop-wakeup_ethernet.o] Error 1 make[5]: *** Waiting for unfinished jobs.... In file included from wakeup/wakeup_usb.cpp:45:0: wakeup/wakeup_usb.h:35:16: error: 'PATH_MAX' was not declared in this scope char usb_path[PATH_MAX]; ^~~~~~~~ wakeup/wakeup_usb.h:35:16: note: suggested alternative: 'INT8_MAX' char usb_path[PATH_MAX]; ^~~~~~~~ INT8_MAX wakeup/wakeup_usb.cpp: In constructor 'usb_wakeup::usb_wakeup(const char*, const char*)': wakeup/wakeup_usb.cpp:52:11: error: 'usb_path' was not declared in this scope snprintf(usb_path, sizeof(usb_path), "/sys/bus/usb/devices/%s/power/wakeup", iface); ^~~~~~~~ wakeup/wakeup_usb.cpp:52:11: note: suggested alternative: 'realpath' snprintf(usb_path, sizeof(usb_path), "/sys/bus/usb/devices/%s/power/wakeup", iface); ^~~~~~~~ realpath wakeup/wakeup_usb.cpp: In member function 'virtual int usb_wakeup::wakeup_value()': wakeup/wakeup_usb.cpp:61:30: error: 'usb_path' was not declared in this scope content = read_sysfs_string(usb_path); ^~~~~~~~ wakeup/wakeup_usb.cpp:61:30: note: suggested alternative: 'realpath' content = read_sysfs_string(usb_path); ^~~~~~~~ realpath wakeup/wakeup_usb.cpp: In member function 'virtual void usb_wakeup::wakeup_toggle()': wakeup/wakeup_usb.cpp:75:15: error: 'usb_path' was not declared in this scope write_sysfs(usb_path, "disabled"); ^~~~~~~~ wakeup/wakeup_usb.cpp:75:15: note: suggested alternative: 'realpath' write_sysfs(usb_path, "disabled"); ^~~~~~~~ realpath wakeup/wakeup_usb.cpp:79:14: error: 'usb_path' was not declared in this scope write_sysfs(usb_path, "enabled"); ^~~~~~~~ wakeup/wakeup_usb.cpp:79:14: note: suggested alternative: 'realpath' write_sysfs(usb_path, "enabled"); ^~~~~~~~ realpath wakeup/wakeup_usb.cpp: In function 'void wakeup_usb_callback(const char*)': wakeup/wakeup_usb.cpp:97:16: error: 'PATH_MAX' was not declared in this scope char filename[PATH_MAX]; ^~~~~~~~ wakeup/wakeup_usb.cpp:97:16: note: suggested alternative: 'INT8_MAX' char filename[PATH_MAX]; ^~~~~~~~ INT8_MAX wakeup/wakeup_usb.cpp:99:11: error: 'filename' was not declared in this scope snprintf(filename, sizeof(filename), "/sys/bus/usb/devices/%s/power/wakeup", d_name); ^~~~~~~~ wakeup/wakeup_usb.cpp:99:11: note: suggested alternative: 'basename' snprintf(filename, sizeof(filename), "/sys/bus/usb/devices/%s/power/wakeup", d_name); ^~~~~~~~ basename make[5]: *** [wakeup/powertop-wakeup_usb.o] Error 1 make[4]: *** [all] Error 2 make[3]: *** [all-recursive] Error 1 make[2]: *** [all] Error 2 make[1]: *** [/home/buildroot/autobuild/run/instance-2/output/build/powertop-2.10/.stamp_built] Error 2 make: *** [_all] Error 2 make: Leaving directory `/home/buildroot/autobuild/run/instance-2/buildroot'