diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2021-08-05 10:20:54 -0400 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2021-08-05 14:22:53 +0000 |
commit | a20755e9ef4117e041154f187fade2040a2bd1d6 (patch) | |
tree | 16c870691b56111832a55c2549afe7200f1c4c8b | |
parent | 9f0f2c66586e8958aa852bc3e67053a875f67031 (diff) | |
download | rockbox-a20755e9ef4117e041154f187fade2040a2bd1d6.tar.gz rockbox-a20755e9ef4117e041154f187fade2040a2bd1d6.zip |
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.c | 2 |
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) | |||
156 | fd = rb->open(TEST_FILE, O_RDONLY); | 156 | fd = rb->open(TEST_FILE, O_RDONLY); |
157 | if (fd < 0) | 157 | if (fd < 0) |
158 | { | 158 | { |
159 | rb->splashf(0, "open() failed: %d", ret); | 159 | rb->splashf(0, "open() failed: %d", fd); |
160 | goto error; | 160 | goto error; |
161 | } | 161 | } |
162 | 162 | ||