device: lito: dumpstate: cat ufs info from /proc/scsi/scsi

Bug: 137150088
Test: trigger bugreport and check the result
Change-Id: I77d89b8a09066511b50c129197367d85dad35790
This commit is contained in:
Leo Liou
2019-10-14 16:22:53 +08:00
parent 81ae555af4
commit db63ecacf6

View File

@@ -330,9 +330,7 @@ static void DumpF2FS(int fd) {
}
static void DumpUFS(int fd) {
DumpFileToFd(fd, "UFS model", "/sys/block/sda/device/model");
DumpFileToFd(fd, "UFS rev", "/sys/block/sda/device/rev");
DumpFileToFd(fd, "UFS size", "/sys/block/sda/size");
DumpFileToFd(fd, "UFS vendor info", "/proc/scsi/scsi");
DumpFileToFd(fd, "UFS show_hba", "/sys/kernel/debug/ufshcd0/show_hba");
DumpFileToFd(fd, "UFS err_stats", "/sys/kernel/debug/ufshcd0/stats/err_stats");
DumpFileToFd(fd, "UFS io_stats", "/sys/kernel/debug/ufshcd0/stats/io_stats");