IBM® Carrier Grade Server X3650 T 
Revision 3.0     
89
17.2.7.1 Synopsis  
#include <syscon.h> 
 
int syscon_log_severity_compare(int *order, syscon_log_severity_t s1, 
        syscon_log_severity_t s2); 
 
17.2.7.2 Description  
The syscon_log_severity_compare() function shall compare the severities of the s1 and s2 arguments.  If 
s1 is more severe than s2, then the integer pointed to by order shall be set to a positive value. If s1 is the 
same severity as s2, then the integer pointed to by order shall be set to zero.  Otherwise, the integer 
pointed to by order shall be set to a negative value.  
17.2.7.3 Returns  
Upon successful completion, syscon_log_severity_compare() shall return zero.  Otherwise, an error 
number shall be returned to indicate the error.  
17.2.7.4 Errors  
For each of the following conditions, if the condition is detected, the syscon_log_severity_compare() 
function shall return the corresponding error number:  
•  [EINVAL]: The value of either s1 or s2 is not a valid severity.  
• [EINVAL]: The order argument is NULL. 
17.2.7.5 Cross-References  
None. 
17.2.8  Create Log Query 
Functions: syscon_log_query_create(), syscon_log_query_get()