Commit 8543a86d authored by Adam Wujek's avatar Adam Wujek

tool/dump-funcs.c: fix compilation error when WR is disabled

Avoid changing indent.
Signed-off-by: 's avatarAdam Wujek <dev_public@wujek.eu>
parent 7c84d584
...@@ -169,7 +169,8 @@ static int wr_dump_tlv(char *prefix, struct ptp_tlv *tlv, int totallen) ...@@ -169,7 +169,8 @@ static int wr_dump_tlv(char *prefix, struct ptp_tlv *tlv, int totallen)
/* the field includes 6 bytes of the header, ecludes 4 of them. Bah! */ /* the field includes 6 bytes of the header, ecludes 4 of them. Bah! */
int explen = ntohs(tlv->len) + 4; int explen = ntohs(tlv->len) + 4;
if ( CONFIG_HAS_PROFILE_WR ) { #ifdef CONFIG_PROFILE_WR
{
static char *wr_message_name[] = { static char *wr_message_name[] = {
"SLAVE_PRESENT", "SLAVE_PRESENT",
"LOCK", "LOCK",
...@@ -283,8 +284,11 @@ static int wr_dump_tlv(char *prefix, struct ptp_tlv *tlv, int totallen) ...@@ -283,8 +284,11 @@ static int wr_dump_tlv(char *prefix, struct ptp_tlv *tlv, int totallen)
} }
} }
return explen; return explen;
} else }
#else
return explen > totallen ? totallen : explen; return explen > totallen ? totallen : explen;
#endif
} }
static int l1sync_dump_tlv(char *prefix, struct l1sync_tlv *tlv, int totallen) static int l1sync_dump_tlv(char *prefix, struct l1sync_tlv *tlv, int totallen)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment