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
@ -83,7 +83,7 @@ int main(int argc, char *argv[])
|
|||||||
s= write(ramfd, buf, r);
|
s= write(ramfd, buf, r);
|
||||||
if (s != 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));
|
s >= 0 ? "short write" : strerror(errno));
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user