Skip to content

Commit

Permalink
add more debug output
Browse files Browse the repository at this point in the history
  • Loading branch information
heinrian committed Jul 16, 2024
1 parent 8be6204 commit b4e9cbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libiotrace/src/event.c
Original file line number Diff line number Diff line change
Expand Up @@ -4194,7 +4194,7 @@ int powercap_open_file(unsigned int offset) {

//LOG_DEBUG("Open File %3d: %3u => %s", fd, offset, pwoercap_file_path_array[offset]);
} else {
LOG_WARN("\n\n\n-------ERROR------\nCant open File for id: %3u\nFile: %s\nFile Descriptor: %d (%d)\nRUN 'chmod 666 /sys/class/powercap/intel-rapl:<package_id>/'", offset,pwoercap_file_path_array[offset] , fd, errno);
LOG_WARN("\n\n\n-------ERROR------\nCant open File for id: %3u\nFile: %s\nFile Descriptor: %d (%d)\nFlags: %d", offset, pwoercap_file_path_array[offset] , fd, errno, O_SYNC|component_sys_flags[powercap_cpu_measurement_tasks[offset].offset_in_file]);
}
} else {
fd = powercap_fd_array[offset].file_descriptor;
Expand Down

0 comments on commit b4e9cbc

Please sign in to comment.