-
Notifications
You must be signed in to change notification settings - Fork 275
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
Add resultToString method for Select class #325
Conversation
|
||
default: | ||
SWSS_LOG_WARN("unknown select result: %d", result); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
WARN [](start = 21, length = 4)
Treat it as an error? #Closed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i set this as warning since it's not a critical issue imo #Closed
* | ||
* Convert select operation result to string representation. | ||
*/ | ||
static std::string resultToString(int result); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
resultToString [](start = 23, length = 14)
What is the use case? Could you add a unit test for this use case? #Closed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use case is to print nice string in log if select operation fails for any reason, i will add unittests
No description provided.