test_disk: Minor fix in an error path

...Log the variable containing the actual error

Change-Id: If22e6b684f2e213bc45c8ca95295936ba8e09895
This commit is contained in:
Solomon Peachy 2021-08-05 10:20:54 -04:00
parent 9f0f2c6658
commit a20755e9ef

View file

@ -156,7 +156,7 @@ static bool test_fs(void)
fd = rb->open(TEST_FILE, O_RDONLY); fd = rb->open(TEST_FILE, O_RDONLY);
if (fd < 0) if (fd < 0)
{ {
rb->splashf(0, "open() failed: %d", ret); rb->splashf(0, "open() failed: %d", fd);
goto error; goto error;
} }