Commit 9566acb5 authored by Ulrich Sibiller's avatar Ulrich Sibiller Committed by Mike Gabriel

Keyboard.c: print message class for user messages

parent c37c47ac
...@@ -1894,23 +1894,23 @@ void nxagentKeycodeConversionSetup(void) ...@@ -1894,23 +1894,23 @@ void nxagentKeycodeConversionSetup(void)
if (doptions != NULL) if (doptions != NULL)
fprintf(keyboard_file, "options=\"%s\"\n", doptions[0] == '\0' ? "," : doptions); fprintf(keyboard_file, "options=\"%s\"\n", doptions[0] == '\0' ? "," : doptions);
fclose(keyboard_file); fclose(keyboard_file);
fprintf(stderr, "keyboard file created\n"); fprintf(stderr, "Info: keyboard file created\n");
} }
else else
{ {
int save_err = errno; int save_err = errno;
fprintf(stderr, "keyboard file not created: %s\n", strerror(save_err)); fprintf(stderr, "Error: keyboard file not created: %s\n", strerror(save_err));
} }
free(keyboard_file_path); free(keyboard_file_path);
} }
else else
{ {
fprintf(stderr, "SessionPath not defined\n"); fprintf(stderr, "Warning: SessionPath not defined\n");
} }
} }
else else
{ {
fprintf(stderr, "Failed to create the keyboard file\n"); fprintf(stderr, "Warning: Failed to create the keyboard file\n");
} }
if (drules != NULL && dmodel != NULL && if (drules != NULL && dmodel != NULL &&
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment