@@ -54,7 +54,7 @@ struct audit_report
5454{
5555 unsigned int backlog ;
5656 unsigned int lost ;
57- unsigned int free_space ;
57+ long long unsigned int free_space ;
5858 unsigned int plugin_current_depth ;
5959 unsigned int plugin_max_depth ;
6060 unsigned int events_total_count ;
@@ -243,7 +243,7 @@ static void get_auditd_status(void)
243243 while (fgets (buf , sizeof (buf ), f )) {
244244 if (memcmp (buf , "Logging" , 7 ) == 0 ) {
245245 sscanf (buf ,
246- "Logging partition free space %u " ,
246+ "Logging partition free space = %llu " ,
247247 & r .free_space );
248248 } else if (memcmp (buf , "current plugin" , 14 ) == 0 ) {
249249 sscanf (buf ,
@@ -276,7 +276,7 @@ static void send_statsd(void)
276276 // incremented (events) are counters.
277277 len = snprintf (message , sizeof (message ),
278278 "kernel.lost:%u|g\nkernel.backlog:%u|g\n"
279- "auditd.free_space:%u |g\nauditd.plugin_current_depth:%u|g\nauditd.plugin_max_depth:%u|g\n"
279+ "auditd.free_space:%llu |g\nauditd.plugin_current_depth:%u|g\nauditd.plugin_max_depth:%u|g\n"
280280 "events.total_count:%u|c\nevents.total_failed:%u|c\n"
281281 "events.avc_count:%u|c\nevents.fanotify_count:%u|c\n"
282282 "events.logins_success:%u|c\nevents.logins_failed:%u|c\n"
0 commit comments