health: fix missing path

Add kDiskStatsFile and kUFSName

Bug: 146843956
Test: Build and boot to home

Change-Id: I0623d06861f894a4b243c5e065e805c9f61ba7ef
Signed-off-by: Ocean Chen <oceanchen@google.com>
This commit is contained in:
Ocean Chen 2019-12-25 11:38:32 +08:00 committed by Cyan_Hsieh
parent 0897a147e1
commit 2f9d30a162
1 changed files with 3 additions and 0 deletions

View File

@ -55,6 +55,9 @@ constexpr char kUfsHealthEol[]{UFS_DIR "/health_descriptor/eol_info"};
constexpr char kUfsHealthLifetimeA[]{UFS_DIR "/health_descriptor/life_time_estimation_a"};
constexpr char kUfsHealthLifetimeB[]{UFS_DIR "/health_descriptor/life_time_estimation_b"};
constexpr char kDiskStatsFile[]{"/sys/block/sda/stat"};
constexpr char kUFSName[]{"UFS0"};
constexpr char kTCPMPSYName[]{"tcpm-source-psy-usbpd0"};
std::ifstream assert_open(const std::string &path) {