From eca2171ab553bb0c871cdd09e820dbe4f142d683 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Sun, 3 Nov 2019 20:10:56 -0600 Subject: [PATCH] apps/nshlib/nsh_netcmds.c: Fix some alignment in output of 'arp -t' command. --- nshlib/nsh_netcmds.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nshlib/nsh_netcmds.c b/nshlib/nsh_netcmds.c index 341349105..6a3a254f0 100644 --- a/nshlib/nsh_netcmds.c +++ b/nshlib/nsh_netcmds.c @@ -1125,10 +1125,10 @@ int cmd_arp(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv) arptab[i].at_ethaddr.ether_addr_octet[5]); #ifdef CONFIG_SYSTEM_TIME64 - nsh_output(vtbl, "%12s %17s 0x%" PRIx64 "\n", + nsh_output(vtbl, "%-12s %-17s 0x%" PRIx64 "\n", ipaddr, ethaddr, (uint64_t)arptab[i].at_time); #else - nsh_output(vtbl, "%12s %17s 0x%" PRIx32 "\n", + nsh_output(vtbl, "%-12s %-17s 0x%" PRIx32 "\n", ipaddr, ethaddr, (uint32_t)arptab[i].at_time); #endif }