summaryrefslogtreecommitdiff
path: root/error.c
blob: 50c030683e2ae04ae46db628c3fe4071f07e89d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include <errno.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <signal.h>

void error_exit(char *format, ...)
{
	char buffer[4096];
	va_list ap;

	va_start(ap, format);
	vsnprintf(buffer, sizeof(buffer), format, ap);
	va_end(ap);

	fprintf(stderr, "%s: errno=%d (if applicable)\n", buffer, errno);

	exit(EXIT_FAILURE);
}
ly
authorCharmaine Lee <charmainel@vmware.com>2016-04-12 08:14:23 -0700
committerSinclair Yeh <syeh@vmware.com>2016-04-28 11:07:15 -0700
commit1883598d4201361a6d2ce785095695f58071ee11 (patch)
treea8b49d1ef0271fdcdc1e060ecfd6943bb196d42c /Documentation/translations
parent928815245cbdaa611873424759d5e7a7293dd18b (diff)
drm/vmwgfx: Enable SVGA_3D_CMD_DX_SET_PREDICATION
Fixes piglit tests nv_conditional_render-* crashes. Signed-off-by: Charmaine Lee <charmainel@vmware.com> Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: Sinclair Yeh <syeh@vmware.com>
Diffstat (limited to 'Documentation/translations')