[PATCH weston 2/2] clients: fix an error message

Peter Hutterer peter.hutterer at who-t.net
Thu Aug 8 00:13:47 PDT 2013


_GNU_SOURCE is always true as of c228e23b055f54d29f2df, so
program_invocation_short_name is available.
---
 clients/window.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/clients/window.c b/clients/window.c
index 9ec9786..cbf8bf5 100644
--- a/clients/window.c
+++ b/clients/window.c
@@ -5330,7 +5330,7 @@ void *
 fail_on_null(void *p)
 {
 	if (p == NULL) {
-		fprintf(stderr, "wayland-scanner: out of memory\n");
+		fprintf(stderr, "%s: out of memory\n", program_invocation_short_name);
 		exit(EXIT_FAILURE);
 	}
 
-- 
1.8.2.1



More information about the wayland-devel mailing list