Skip to content

Commit

Permalink
broker: clean up ipaddr log message in PMI boot
Browse files Browse the repository at this point in the history
Problem: when ipaddr_getprimary() fails during PMI bootstrap, the
broker prints the textual error plus, unnecessarily, the errno string.

This results in messages like this:
flux-broker: could not find address of badiface: Success

Drop the errno string suffix.
  • Loading branch information
garlick committed Jan 30, 2024
1 parent 259d90d commit fa4fdf5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/broker/boot_pmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ static int format_bind_uri (char *buf, int bufsz, attr_t *attrs, int rank)

if (ipaddr_getprimary (ipaddr, sizeof (ipaddr),
error, sizeof (error)) < 0) {
log_err ("%s", error);
log_msg ("%s", error);
return -1;
}
if (snprintf (buf, bufsz, "tcp://%s:*", ipaddr) >= bufsz)
Expand Down

0 comments on commit fa4fdf5

Please sign in to comment.