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

Add resultToString method for Select class #325

Merged
merged 2 commits into from
Dec 19, 2019

Conversation

kcudnik
Copy link
Contributor

@kcudnik kcudnik commented Dec 15, 2019

No description provided.


default:
SWSS_LOG_WARN("unknown select result: %d", result);
Copy link
Contributor

@qiluo-msft qiluo-msft Dec 16, 2019

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

Copy link
Contributor Author

@kcudnik kcudnik Dec 18, 2019

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);
Copy link
Contributor

@qiluo-msft qiluo-msft Dec 16, 2019

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

Copy link
Contributor Author

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

@kcudnik kcudnik merged commit b080150 into sonic-net:master Dec 19, 2019
@kcudnik kcudnik deleted the selectresult branch December 19, 2019 19:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants