From db63ecacf6e969fbdbbb04230729eab3365ecb44 Mon Sep 17 00:00:00 2001 From: Leo Liou Date: Mon, 14 Oct 2019 16:22:53 +0800 Subject: [PATCH] device: lito: dumpstate: cat ufs info from /proc/scsi/scsi Bug: 137150088 Test: trigger bugreport and check the result Change-Id: I77d89b8a09066511b50c129197367d85dad35790 --- dumpstate/DumpstateDevice.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/dumpstate/DumpstateDevice.cpp b/dumpstate/DumpstateDevice.cpp index 7b1d2ee..94a5729 100755 --- a/dumpstate/DumpstateDevice.cpp +++ b/dumpstate/DumpstateDevice.cpp @@ -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");