Mir string fixes.

This commit is contained in:
Camilla Berglund
2015-01-06 02:38:00 +01:00
parent cbc18bf968
commit ead3937394
3 changed files with 29 additions and 26 deletions
+6 -3
View File
@@ -27,6 +27,8 @@
#include "internal.h"
#include <stdlib.h>
#include <string.h>
//////////////////////////////////////////////////////////////////////////
////// GLFW internal API //////
@@ -41,7 +43,7 @@ int _glfwPlatformInit(void)
if (!mir_connection_is_valid(_glfw.mir.connection))
{
_glfwInputError(GLFW_PLATFORM_ERROR,
"Mir: Unable to connect to Server %s",
"Mir: Unable to connect to server: %s",
mir_connection_get_error_message(_glfw.mir.connection));
mir_connection_release(_glfw.mir.connection);
@@ -64,7 +66,8 @@ int _glfwPlatformInit(void)
if (error)
{
_glfwInputError(GLFW_PLATFORM_ERROR,
"Mir: Failed to create Event Mutex Error: %i\n", error);
"Mir: Failed to create event mutex: %s\n",
strerror(error));
return GL_FALSE;
}
@@ -85,7 +88,7 @@ void _glfwPlatformTerminate(void)
const char* _glfwPlatformGetVersionString(void)
{
const char* version = _GLFW_VERSION_NUMBER " Mir EGL "
const char* version = _GLFW_VERSION_NUMBER " Mir EGL"
#if defined(_POSIX_TIMERS) && defined(_POSIX_MONOTONIC_CLOCK)
" clock_gettime"
#endif