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
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
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
OpenXG
OpenXG-RAN
Commits
925566b0
Commit
925566b0
authored
Aug 13, 2024
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
module loader: remove printf(), put error into printf(stderr)
parent
85e198b1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
5 deletions
+1
-5
common/utils/load_module_shlib.c
common/utils/load_module_shlib.c
+1
-5
No files found.
common/utils/load_module_shlib.c
View file @
925566b0
...
...
@@ -49,7 +49,7 @@ void loader_init(void) {
loader_data
.
mainexec_buildversion
=
OAI_PACKAGE_VERSION
;
int
ret
=
config_get
(
config_get_if
(),
LoaderParams
,
sizeofArray
(
LoaderParams
),
LOADER_CONFIG_PREFIX
);
if
(
ret
<
0
)
{
printf
(
"[LOADER] configuration couldn't be performed via config module, parameters set to default values
\n
"
);
fprintf
(
stderr
,
"[LOADER] configuration couldn't be performed via config module, parameters set to default values
\n
"
);
if
(
loader_data
.
shlibpath
==
NULL
)
{
loader_data
.
shlibpath
=
DEFAULT_PATH
;
}
...
...
@@ -136,12 +136,9 @@ int load_module_version_shlib(char *modname, char *version, loader_shlibfunc_t *
}
shlib_path
=
loader_format_shlibpath
(
modname
,
version
);
printf
(
"shlib_path %s
\n
"
,
shlib_path
);
for
(
int
i
=
0
;
i
<
loader_data
.
numshlibs
;
i
++
)
{
if
(
strcmp
(
loader_data
.
shlibs
[
i
].
name
,
modname
)
==
0
)
{
printf
(
"[LOADER] library %s has been loaded previously, reloading function pointers
\n
"
,
shlib_path
);
lib_idx
=
i
;
break
;
}
...
...
@@ -165,7 +162,6 @@ int load_module_version_shlib(char *modname, char *version, loader_shlibfunc_t *
goto
load_module_shlib_exit
;
}
printf
(
"[LOADER] library %s successfully loaded
\n
"
,
shlib_path
);
afname
=
malloc
(
strlen
(
modname
)
+
15
);
if
(
!
afname
)
{
fprintf
(
stderr
,
"[LOADER] unable to allocate memory for library %s
\n
"
,
shlib_path
);
...
...
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