fix syslog header PRI calculation