Move all printf / fprintf from header to source file. #4

Open
opened 2025-01-11 02:20:08 +01:00 by hanez · 3 comments
Owner

Define return codes and process them in the main program for printing errors.

Define return codes and process them in the main program for printing errors.
Author
Owner

What is that D(("text.")); makro call in the pam libs? Maybe use this for writing errors to syslog?

What is that D(("text.")); makro call in the pam libs? Maybe use this for writing errors to syslog?
Author
Owner

It seems that the function pam_syslog() is logging to syslog... But wth the hell is D(())???

It seems that the function pam_syslog() is logging to syslog... But wth the hell is D(())???
Author
Owner

Okay, D() is defined in https://github.com/linux-pam/linux-pam/blob/master/libpam/include/security/_pam_macros.h. It is for debug output when the application is compiled with -DPAM_DEBUG. Seems to be the right replacement for printf / fprintf in the header file.

Okay, D() is defined in https://github.com/linux-pam/linux-pam/blob/master/libpam/include/security/_pam_macros.h. It is for debug output when the application is compiled with -DPAM_DEBUG. Seems to be the right replacement for printf / fprintf in the header file.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
hanez/chkusr#4
No description provided.