| Summary: | drakxtools print perl warnings in console (module-init-tools/ldetect) | ||
|---|---|---|---|
| Product: | Mageia | Reporter: | Samuel Verschelde <stormi-mageia> |
| Component: | RPM Packages | Assignee: | Thierry Vignaud <thierry.vignaud> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | Normal | CC: | mageia, pterjan, thierry.vignaud |
| Version: | Cauldron | Keywords: | PATCH |
| Target Milestone: | --- | ||
| Hardware: | i586 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Source RPM: | module-init-tools / ldetect | CVE: | |
| Status comment: | |||
| Bug Depends on: | |||
| Bug Blocks: | 3031 | ||
| Attachments: |
console logs
This renames m-d-i's warn() as mod_warn() prevents calling random stuff on error (and "logs"both lspcidrake & mod* still works after errors) |
||
|
Description
Samuel Verschelde
2011-11-10 14:57:57 CET
Created attachment 1051 [details]
console logs
in fact it happens with several drakxtools, drakroam for example. Summary:
harddrake2 prints perl errors in console =>
drakxtools print perl errors in console
Olivier Blin
2011-11-10 22:07:19 CET
CC:
(none) =>
mageia, thierry.vignaud
Olivier Blin
2011-11-10 22:07:33 CET
CC:
(none) =>
pterjan Looks like it is a bug in ldetect or module-init-tools. It seems that the warn() function of logging.c (in module-init-tools) is not called at all. Maybe a warn() function from perl is called instead? Also, in modalias.c from ldetect, the "errfn_t error" function pointer is not initialized, this can lead to chaos.
Manuel Hiebel
2011-11-11 01:10:25 CET
Blocks:
(none) =>
3031 Created attachment 1091 [details]
This renames m-d-i's warn() as mod_warn()
Created attachment 1092 [details]
prevents calling random stuff on error (and "logs"both lspcidrake & mod* still works after errors)
both lspcidrake & mod* still works after
Now those warnings go the libmodprobe tubes way. They still shows Keywords:
(none) =>
PATCH Fixed Status:
ASSIGNED =>
RESOLVED |