Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
openairinterface5G
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
oai
openairinterface5G
Commits
925566b0
Commit
925566b0
authored
7 months ago
by
Robert Schmidt
Browse files
Options
Downloads
Patches
Plain Diff
module loader: remove printf(), put error into printf(stderr)
parent
85e198b1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!3081
Integration: `2024.w44`
,
!3078
Simplify logs in gNB&UE
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
common/utils/load_module_shlib.c
+1
-5
1 addition, 5 deletions
common/utils/load_module_shlib.c
with
1 addition
and
5 deletions
common/utils/load_module_shlib.c
+
1
−
5
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
"
);
f
printf
(
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
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment