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:
Thomas Cort 2013-08-10 12:47:35 -04:00 committed by Gerrit Code Review
parent d06d9df7af
commit 1e70f9f0b3

View file

@ -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);
}