mirror of
https://github.com/ipxe/ipxe
synced 2025-12-29 02:52:36 +03:00
[syslog] Include hostname within syslog messages where possible
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -162,10 +162,8 @@ static void syslogs_putchar ( int character ) {
|
||||
syslogs_entered = 1;
|
||||
|
||||
/* Send log message */
|
||||
if ( ( rc = xfer_printf ( &syslogs, "<%d>ipxe: %s\n",
|
||||
SYSLOG_PRIORITY ( SYSLOG_DEFAULT_FACILITY,
|
||||
syslogs_severity ),
|
||||
syslogs_buffer ) ) != 0 ) {
|
||||
if ( ( rc = syslog_send ( &syslogs, syslogs_severity,
|
||||
syslogs_buffer, "\n" ) ) != 0 ) {
|
||||
DBG ( "SYSLOGS could not send log message: %s\n",
|
||||
strerror ( rc ) );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user