Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Following enum overlap the system error number: #83

Open
wesleywesley opened this issue Mar 19, 2019 · 0 comments
Open

Following enum overlap the system error number: #83

wesleywesley opened this issue Mar 19, 2019 · 0 comments

Comments

@wesleywesley
Copy link
Contributor

Following enum overlap the system error number:

ERR_PHYC_PORT_ARDY_BIND = 0x00000001,
ERR_LOGC_PORT_ARDY_BIND = 0x00000002,

ERR_BIND_CHECK_FAIL = 0x0000000d,

Which lead to false prompt in case of non-port-bind related commands by following code in switchtec_strerror function:

case ERR_PHYC_PORT_ARDY_BIND:
	msg = "Physical port already bound"; break; 
case ERR_LOGC_PORT_ARDY_BIND: 
	msg = "Logical bridge instance already bound"; break; 
    …
case ERR_BIND_CHECK_FAIL: 
	msg = "Port bind checking failed"; break;

Originally posted by @wesleywesley in #42 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant