Mercurial > hg > freeDiameter
changeset 976:33f18714b1fb
Remove now unnecessary suffix argument from fd_ep_dump_one.
author | Thomas Klausner <tk@giga.or.at> |
---|---|
date | Thu, 14 Mar 2013 18:28:32 +0100 |
parents | 5c564966a754 |
children | b28d3c623096 |
files | include/freeDiameter/libfdcore.h libfdcore/endpoints.c |
diffstat | 2 files changed, 4 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/include/freeDiameter/libfdcore.h Thu Mar 14 18:27:39 2013 +0100 +++ b/include/freeDiameter/libfdcore.h Thu Mar 14 18:28:32 2013 +0100 @@ -821,7 +821,7 @@ int fd_ep_filter_family( struct fd_list * list, int af ); int fd_ep_filter_list( struct fd_list * list, struct fd_list * exclude_list ); int fd_ep_clearflags( struct fd_list * list, uint32_t flags ); -void fd_ep_dump_one( char * prefix, struct fd_endpoint * ep, char * suffix ); +void fd_ep_dump_one( char * prefix, struct fd_endpoint * ep ); void fd_ep_dump( int indent, struct fd_list * eps );
--- a/libfdcore/endpoints.c Thu Mar 14 18:27:39 2013 +0100 +++ b/libfdcore/endpoints.c Thu Mar 14 18:28:32 2013 +0100 @@ -333,7 +333,7 @@ return 0; } -void fd_ep_dump_one( char * prefix, struct fd_endpoint * ep, char * suffix ) +void fd_ep_dump_one( char * prefix, struct fd_endpoint * ep ) { char buf[1024]; @@ -343,8 +343,7 @@ (ep->flags & EP_FL_DISC) ? "D" : "-", (ep->flags & EP_FL_ADV) ? "A" : "-", (ep->flags & EP_FL_LL) ? "L" : "-", - (ep->flags & EP_FL_PRIMARY) ? "P" : "-", - suffix ?: ""); + (ep->flags & EP_FL_PRIMARY) ? "P" : "-"); } void fd_ep_dump( int indent, struct fd_list * eps ) @@ -353,7 +352,7 @@ for (li = eps->next; li != eps; li = li->next) { struct fd_endpoint * ep = (struct fd_endpoint *)li; fd_log_debug("%*s", indent, ""); - fd_ep_dump_one( NULL, ep, "\n" ); + fd_ep_dump_one( NULL, ep ); } }