From c40dc1f9d8dda31cd74706e51fd939805a04930d Mon Sep 17 00:00:00 2001 From: bigbiff Date: Sun, 21 Feb 2021 13:33:54 -0500 Subject: [PATCH] apex: add errno reporting for mount Change-Id: Ic6db027b5b898332bf2c86c714adabb73acc7b1e --- twrpApex.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/twrpApex.cpp b/twrpApex.cpp index d9505c35..a6041f12 100755 --- a/twrpApex.cpp +++ b/twrpApex.cpp @@ -138,7 +138,7 @@ bool twrpApex::loadApexImage(std::string fileToMount, size_t loop_device_number) ret = mount(loop_device.c_str(), bind_mount.c_str(), "ext4", MS_RDONLY, nullptr); if (ret != 0) { - LOGERR("unable to mount loop device %s to %s\n", loop_device.c_str(), bind_mount.c_str()); + LOGERR("unable to mount loop device %s to %s. reason: %s\n", loop_device.c_str(), bind_mount.c_str(), strerror(errno)); return false; }