2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-31 06:15:47 +00:00

util: New function ovs_fatal_valist().

This commit adds a few initial users but more are coming up.
This commit is contained in:
Ben Pfaff
2011-03-31 14:50:58 -07:00
parent b725cf028c
commit fcaddd4dd1
4 changed files with 11 additions and 22 deletions

View File

@@ -204,9 +204,14 @@ ovs_fatal(int err_no, const char *format, ...)
va_list args;
va_start(args, format);
ovs_error_valist(err_no, format, args);
va_end(args);
ovs_fatal_valist(err_no, format, args);
}
/* Same as ovs_fatal() except that the arguments are supplied as a va_list. */
void
ovs_fatal_valist(int err_no, const char *format, va_list args)
{
ovs_error_valist(err_no, format, args);
exit(EXIT_FAILURE);
}