2011-05-25 Ralf Corsépius <ralf.corsepius@rtems.org>

* libblock/src/flashdisk.c, libblock/src/nvdisk.c:
	Add va_end() (Backport from HEAD).
This commit is contained in:
Ralf Corsepius
2011-05-25 04:48:10 +00:00
parent c53e0e31f3
commit 3342963ed1
3 changed files with 14 additions and 0 deletions

View File

@@ -1,3 +1,8 @@
2011-05-25 Ralf Corsépius <ralf.corsepius@rtems.org>
* libblock/src/flashdisk.c, libblock/src/nvdisk.c:
Add va_end() (Backport from HEAD).
2011-05-19 Ralf Corsépius <ralf.corsepius@rtems.org>
* posix/Makefile.am: Add posixtime.h.

View File

@@ -344,6 +344,7 @@ rtems_fdisk_printf (const rtems_flashdisk* fd, const char *format, ...)
ret = vfprintf (stdout, format, args);
fprintf (stdout, "\n");
fflush (stdout);
va_end (args);
}
return ret;
}
@@ -368,6 +369,7 @@ rtems_fdisk_info (const rtems_flashdisk* fd, const char *format, ...)
ret = vfprintf (stdout, format, args);
fprintf (stdout, "\n");
fflush (stdout);
va_end (args);
}
return ret;
}
@@ -392,6 +394,7 @@ rtems_fdisk_warning (const rtems_flashdisk* fd, const char *format, ...)
ret = vfprintf (stdout, format, args);
fprintf (stdout, "\n");
fflush (stdout);
va_end (args);
}
return ret;
}
@@ -414,6 +417,7 @@ rtems_fdisk_error (const char *format, ...)
ret = vfprintf (stderr, format, args);
fprintf (stderr, "\n");
fflush (stderr);
va_end (args);
return ret;
}
@@ -432,6 +436,7 @@ rtems_fdisk_abort (const char *format, ...)
vfprintf (stderr, format, args);
fprintf (stderr, "\n");
fflush (stderr);
va_end (args);
exit (1);
}

View File

@@ -175,6 +175,7 @@ rtems_nvdisk_printf (const rtems_nvdisk* nvd, const char *format, ...)
ret = vfprintf (stdout, format, args);
fprintf (stdout, "\n");
fflush (stdout);
va_end (args);
}
return ret;
}
@@ -199,6 +200,7 @@ rtems_nvdisk_info (const rtems_nvdisk* nvd, const char *format, ...)
ret = vfprintf (stdout, format, args);
fprintf (stdout, "\n");
fflush (stdout);
va_end (args);
}
return ret;
}
@@ -223,6 +225,7 @@ rtems_nvdisk_warning (const rtems_nvdisk* nvd, const char *format, ...)
ret = vfprintf (stdout, format, args);
fprintf (stdout, "\n");
fflush (stdout);
va_end (args);
}
return ret;
}
@@ -245,6 +248,7 @@ rtems_nvdisk_error (const char *format, ...)
ret = vfprintf (stderr, format, args);
fprintf (stderr, "\n");
fflush (stderr);
va_end (args);
return ret;
}