Skip to content

Commit

Permalink
Improve formatting for info command
Browse files Browse the repository at this point in the history
  • Loading branch information
nowrep committed Mar 31, 2024
1 parent 35b5f71 commit e9400b6
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions main.c
Original file line number Diff line number Diff line change
Expand Up @@ -544,14 +544,14 @@ static int command_info(struct dualsense *ds)
struct dualsense_feature_report_firmware *ds_report;
ds_report = (struct dualsense_feature_report_firmware *)&buf;

printf("hardware: %x,\tfirmware: %x\n", ds_report->hardware_info, ds_report->firmware_version);
printf("build_date: %.11s,\tbuild_time: %.8s\n", ds_report->build_date, ds_report->build_time);
printf("fw_type: %i,\tsw_series %i\n", ds_report->fw_type, ds_report->sw_series);
printf("update_version: %04x\n", ds_report->update_version);
/*printf("device_info: %.12s\n", ds_report->device_info);
printf("update_image_info: %c,\tupdate_unk: %c\n", ds_report->update_image_info, ds_report->update_unk);
printf("fw_version_1: %i,\tfw_version_2: %i,\tfw_version_3: %i\n", ds_report->fw_version_1, ds_report->fw_version_2, ds_report->fw_version_3);
*/
printf("Hardware: %x\n", ds_report->hardware_info);
printf("Build date: %.11s %.8s\n", ds_report->build_date, ds_report->build_time);
printf("Firmware: %x (type %i)\n", ds_report->firmware_version, ds_report->fw_type);
printf("Fw version: %i %i %i\n", ds_report->fw_version_1, ds_report->fw_version_2, ds_report->fw_version_3);
printf("Sw series: %i\n", ds_report->sw_series);
printf("Update version: %04x\n", ds_report->update_version);
/* printf("Device info: %.12s\n", ds_report->device_info); */
/* printf("Update image info: %c\n", ds_report->update_image_info); */

return 0;
}
Expand Down

0 comments on commit e9400b6

Please sign in to comment.