send_syslog: include a hostname

This commit is contained in:
folkert van heusden 2024-05-21 11:42:15 +02:00
parent b57938c692
commit 810afdf526
Signed by untrusted user who does not match committer: folkert
GPG key ID: 6B6455EDFEED3BD1

View file

@ -124,7 +124,7 @@ void setloguid(const int uid, const int gid)
void send_syslog(const int ll, const std::string & what)
{
std::string msg = format("<%d>%s", 16 * 8 + ll, what.c_str());
std::string msg = format("<%d>PDP11 %s", 16 * 8 + ll, what.c_str());
int s = socket(AF_INET, SOCK_DGRAM, 0);
if (s != -1) {