loadramdisk: bug fix for bad fprintf() format
An fprintf() has two %s formats but only one additional argument. Include the name of the device file in the fprintf() call to balance the arguments and format. Change-Id: I62e702cf0bc9935897c2f85b0acc3b62b41d654a
This commit is contained in:
parent
d06d9df7af
commit
1e70f9f0b3
1 changed files with 1 additions and 1 deletions
|
@ -83,7 +83,7 @@ int main(int argc, char *argv[])
|
|||
s= write(ramfd, buf, r);
|
||||
if (s != r)
|
||||
{
|
||||
fprintf(stderr, "error writing to '%s': %s\n",
|
||||
fprintf(stderr, "error writing to '%s': %s\n", RAM,
|
||||
s >= 0 ? "short write" : strerror(errno));
|
||||
exit(1);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue