Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lizhongxiao
OpenXG-RAN
Commits
45728df2
Commit
45728df2
authored
May 25, 2016
by
Cedric Roux
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bugfix: wrong index
parent
2e64d54e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
common/utils/T/tracer/database.c
common/utils/T/tracer/database.c
+5
-4
No files found.
common/utils/T/tracer/database.c
View file @
45728df2
...
...
@@ -484,17 +484,18 @@ void database_get_generic_description(void *_d, int id,
char
**
name
,
char
**
desc
)
{
database
*
d
=
_d
;
int
pos
=
d
->
id_to_pos
[
id
];
OBUF
o
;
int
i
;
*
name
=
strdup
(
d
->
i
[
id
].
name
);
*
name
=
strdup
(
d
->
i
[
pos
].
name
);
if
(
*
name
==
NULL
)
abort
(
);
o
.
osize
=
o
.
omaxsize
=
0
;
o
.
obuf
=
NULL
;
PUTS
(
&
o
,
*
name
);
for
(
i
=
0
;
i
<
d
->
i
[
id
].
asize
;
i
++
)
{
for
(
i
=
0
;
i
<
d
->
i
[
pos
].
asize
;
i
++
)
{
PUTC
(
&
o
,
' '
);
PUTS
(
&
o
,
d
->
i
[
id
].
arg_name
[
i
]);
PUTS
(
&
o
,
d
->
i
[
pos
].
arg_name
[
i
]);
PUTS
(
&
o
,
" ["
);
PUTS
(
&
o
,
d
->
i
[
id
].
arg_name
[
i
]);
PUTS
(
&
o
,
d
->
i
[
pos
].
arg_name
[
i
]);
PUTS
(
&
o
,
"]"
);
}
PUTC
(
&
o
,
0
);
...
...
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