Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Convert lookup table to _2str function
Summary: Currently, for some logging, we rely on lookup tables without bounds checking or guarantees about enum values to convert certain values to strings. This could cause MME crashes or incorrect string values in the future. In this diff, we change this from lookup tables to functions with switch/case statements. Reviewed By: vikg-fb Differential Revision: D14690806 fbshipit-source-id: 04518dcda0ddb64d1bb99ebd0e5114027897f232
- Loading branch information
1 parent
ac3992f
commit 5bdee78
Showing
3 changed files
with
41 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters