Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
common: Fix FRU display error in log-util (facebook#98)
Summary: FRU number always shows one digit even if there are two. Modify the display rule to correct it. Example: Before modify: 1 scm 2018-10-17 02:09:45 sensord ASSERT: Upper Non Critical threshold - raised - FRU: 12, num: 0x17 curr_val: 9024.00 RPM, thresh_val: 8500.00 RPM, snr: PSU2_FAN_SPEED 1 scm 2018-10-17 02:09:47 sensord ASSERT: Upper Non Critical threshold - raised - FRU: 13, num: 0x24 curr_val: 9024.00 RPM, thresh_val: 8500.00 RPM, snr: PSU3_FAN_SPEED 1 scm 2018-10-17 02:09:48 sensord ASSERT: Upper Non Critical threshold - raised - FRU: 14, num: 0x31 curr_val: 8992.00 RPM, thresh_val: 8500.00 RPM, snr: PSU4_FAN_SPEED After modify: 12 psu2 2018-10-17 02:09:45 sensord ASSERT: Upper Non Critical threshold - raised - FRU: 12, num: 0x17 curr_val: 9024.00 RPM, thresh_val: 8500.00 RPM, snr: PSU2_FAN_SPEED 13 psu3 2018-10-17 02:09:47 sensord ASSERT: Upper Non Critical threshold - raised - FRU: 13, num: 0x24 curr_val: 9024.00 RPM, thresh_val: 8500.00 RPM, snr: PSU3_FAN_SPEED 14 psu4 2018-10-17 02:09:48 sensord ASSERT: Upper Non Critical threshold - raised - FRU: 14, num: 0x31 curr_val: 8992.00 RPM, thresh_val: 8500.00 RPM, snr: PSU4_FAN_SPEED Pull Request resolved: facebookexternal/openbmc.accton#98 Test Plan: Test on minipack: pass Reviewed By: amithash fbshipit-source-id: a28726d45
- Loading branch information