summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2021-08-05 10:20:54 -0400
committerSolomon Peachy <pizza@shaftnet.org>2021-08-05 14:22:53 +0000
commita20755e9ef4117e041154f187fade2040a2bd1d6 (patch)
tree16c870691b56111832a55c2549afe7200f1c4c8b
parent9f0f2c66586e8958aa852bc3e67053a875f67031 (diff)
test_disk: Minor fix in an error path
...Log the variable containing the actual error Change-Id: If22e6b684f2e213bc45c8ca95295936ba8e09895
-rw-r--r--apps/plugins/test_disk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/plugins/test_disk.c b/apps/plugins/test_disk.c
index b689ba672e..1429668556 100644
--- a/apps/plugins/test_disk.c
+++ b/apps/plugins/test_disk.c
@@ -156,7 +156,7 @@ static bool test_fs(void)
fd = rb->open(TEST_FILE, O_RDONLY);
if (fd < 0)
{
- rb->splashf(0, "open() failed: %d", ret);
+ rb->splashf(0, "open() failed: %d", fd);
goto error;
}