test_disk: Minor fix in an error path
...Log the variable containing the actual error Change-Id: If22e6b684f2e213bc45c8ca95295936ba8e09895
This commit is contained in:
parent
9f0f2c6658
commit
a20755e9ef
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue