lib/stp.c
/* Returns the name for the given 'role' (for use in debugging and log
 * messages). */
Returns the name for the given 'role' (for use in debugging and log
messages).
Returns the name for the given ' role ' ( for use in debugging and log messages ) .
const char *
stp_role_name(enum stp_role role)
{
    switch (role) {
    case STP_ROLE_ROOT:
        return "root";
    case STP_ROLE_DESIGNATED:
        return "designated";
    case STP_ROLE_ALTERNATE:
        return "alternate";
    case STP_ROLE_DISABLED:
        return "disabled";
    default:
        OVS_NOT_REACHED();
    }
}
const char * stp_role_name ( enum stp_role role ) { switch ( role ) { case STP_ROLE_ROOT : return " " ; case STP_ROLE_DESIGNATED : return " " ; case STP_ROLE_ALTERNATE : return " " ; case STP_ROLE_DISABLED : return " " ; default : OVS_NOT_REACHED ( ) ; } }
Returns the name for the given 'role' (for use in debugging and log
 messages).
Returns the name for the given ' role ' ( for use in debugging and log messages ) .