mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
lib:socket: Add missing newlines to logging messages
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
ea888d6901
commit
6ee008d2d9
@ -136,12 +136,12 @@ static void query_iface_speed_from_name(const char *name, uint64_t *speed)
|
|||||||
|
|
||||||
fd = socket(AF_INET, SOCK_DGRAM, IPPROTO_IP);
|
fd = socket(AF_INET, SOCK_DGRAM, IPPROTO_IP);
|
||||||
if (fd == -1) {
|
if (fd == -1) {
|
||||||
DBG_ERR("Failed to open socket.");
|
DBG_ERR("Failed to open socket.\n");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (strlen(name) >= IF_NAMESIZE) {
|
if (strlen(name) >= IF_NAMESIZE) {
|
||||||
DBG_ERR("Interface name too long.");
|
DBG_ERR("Interface name too long.\n");
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -184,12 +184,12 @@ static void query_iface_rx_queues_from_name(const char *name,
|
|||||||
|
|
||||||
fd = socket(AF_INET, SOCK_DGRAM, IPPROTO_IP);
|
fd = socket(AF_INET, SOCK_DGRAM, IPPROTO_IP);
|
||||||
if (fd == -1) {
|
if (fd == -1) {
|
||||||
DBG_ERR("Failed to open socket.");
|
DBG_ERR("Failed to open socket.\n");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (strlen(name) >= IF_NAMESIZE) {
|
if (strlen(name) >= IF_NAMESIZE) {
|
||||||
DBG_ERR("Interface name too long.");
|
DBG_ERR("Interface name too long.\n");
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user