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
16edce1e
Commit
16edce1e
authored
Feb 08, 2006
by
tomas@poseidon.ndb.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug #17235 perror prints wrong prefix for ndb error codes
parent
8d1e578c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
1 deletion
+15
-1
extra/perror.c
extra/perror.c
+15
-1
No files found.
extra/perror.c
View file @
16edce1e
...
@@ -239,10 +239,24 @@ int main(int argc,char *argv[])
...
@@ -239,10 +239,24 @@ int main(int argc,char *argv[])
if
((
ndb_error_string
(
code
,
ndb_string
,
sizeof
(
ndb_string
))
<
0
)
&&
if
((
ndb_error_string
(
code
,
ndb_string
,
sizeof
(
ndb_string
))
<
0
)
&&
(
ndbd_exit_string
(
code
,
ndb_string
,
sizeof
(
ndb_string
))
<
0
))
(
ndbd_exit_string
(
code
,
ndb_string
,
sizeof
(
ndb_string
))
<
0
))
{
{
msg
=
0
;
msg
=
0
;
}
}
else
else
msg
=
ndb_string
;
msg
=
ndb_string
;
if
(
msg
)
{
if
(
verbose
)
printf
(
"NDB error code %3d: %s
\n
"
,
code
,
msg
);
else
puts
(
msg
);
}
else
{
fprintf
(
stderr
,
"Illegal ndb error code: %d
\n
"
,
code
);
error
=
1
;
}
found
=
1
;
msg
=
0
;
}
}
else
else
#endif
#endif
...
...
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