projects
/
platform
/
upstream
/
libxkbcommon.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Messages: add new messages to registry
[platform/upstream/libxkbcommon.git]
/
src
/
xkbcomp
/
xkbcomp-priv.h
diff --git
a/src/xkbcomp/xkbcomp-priv.h
b/src/xkbcomp/xkbcomp-priv.h
index
5a7765f
..
50c07b5
100644
(file)
--- a/
src/xkbcomp/xkbcomp-priv.h
+++ b/
src/xkbcomp/xkbcomp-priv.h
@@
-82,7
+82,8
@@
static inline bool
ReportNotArray(struct xkb_context *ctx, const char *type, const char *field,
const char *name)
{
ReportNotArray(struct xkb_context *ctx, const char *type, const char *field,
const char *name)
{
- log_err(ctx,
+ log_err_with_code(ctx,
+ XKB_ERROR_WRONG_FIELD_TYPE,
"The %s %s field is not an array; "
"Ignoring illegal assignment in %s\n",
type, field, name);
"The %s %s field is not an array; "
"Ignoring illegal assignment in %s\n",
type, field, name);
@@
-93,7
+94,8
@@
static inline bool
ReportShouldBeArray(struct xkb_context *ctx, const char *type,
const char *field, const char *name)
{
ReportShouldBeArray(struct xkb_context *ctx, const char *type,
const char *field, const char *name)
{
- log_err(ctx,
+ log_err_with_code(ctx,
+ XKB_ERROR_EXPECTED_ARRAY_ENTRY,
"Missing subscript for %s %s; "
"Ignoring illegal assignment in %s\n",
type, field, name);
"Missing subscript for %s %s; "
"Ignoring illegal assignment in %s\n",
type, field, name);