Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
955d2a69
Commit
955d2a69
authored
May 05, 2004
by
tomas@mc05.(none)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
small fix after bar's code review
parent
5181a33e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
10 deletions
+5
-10
ndb/src/ndbapi/ndberror.c
ndb/src/ndbapi/ndberror.c
+5
-10
No files found.
ndb/src/ndbapi/ndberror.c
View file @
955d2a69
...
...
@@ -578,19 +578,14 @@ const char *ndberror_classification_message(ndberror_classification classificati
int
ndb_error_string
(
int
err_no
,
char
*
str
,
size_t
size
)
{
ndberror_struct
error
;
size_t
len
=
0
,
tlen
=
0
;
size_t
len
;
error
.
code
=
err_no
;
ndberror_update
(
&
error
);
len
+=
snprintf
(
str
+
tlen
,
size
-
tlen
,
"%s"
,
error
.
message
);
tlen
=
len
<
size
?
len
:
size
;
len
+=
snprintf
(
str
+
tlen
,
size
-
tlen
,
": "
);
tlen
=
len
<
size
?
len
:
size
;
len
+=
snprintf
(
str
+
tlen
,
size
-
tlen
,
"%s"
,
ndberror_status_message
(
error
.
status
));
tlen
=
len
<
size
?
len
:
size
;
len
+=
snprintf
(
str
+
tlen
,
size
-
tlen
,
": "
);
tlen
=
len
<
size
?
len
:
size
;
len
+=
snprintf
(
str
+
tlen
,
size
-
tlen
,
"%s"
,
ndberror_classification_message
(
error
.
classification
));
len
=
snprintf
(
str
,
size
-
1
,
"%s: %s: %s"
,
error
.
message
,
ndberror_status_message
(
error
.
status
),
ndberror_classification_message
(
error
.
classification
));
str
[
size
-
1
]
=
'\0'
;
return
len
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment