Changeset 71957 in vbox for trunk/src/VBox
- Timestamp:
- Apr 22, 2018 11:50:39 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/utils/serial/SerialTest.cpp
r71029 r71957 784 784 break; 785 785 case 'c': 786 if ( !RTStrICmp(ValueUnion.psz, "5"))786 if (ValueUnion.u32 == 5) 787 787 g_SerialPortCfg.enmDataBitCount = RTSERIALPORTDATABITS_5BITS; 788 else if ( !RTStrICmp(ValueUnion.psz, "6"))788 else if (ValueUnion.u32 == 6) 789 789 g_SerialPortCfg.enmDataBitCount = RTSERIALPORTDATABITS_6BITS; 790 else if ( !RTStrICmp(ValueUnion.psz, "7"))790 else if (ValueUnion.u32 == 7) 791 791 g_SerialPortCfg.enmDataBitCount = RTSERIALPORTDATABITS_7BITS; 792 else if ( !RTStrICmp(ValueUnion.psz, "8"))792 else if (ValueUnion.u32 == 8) 793 793 g_SerialPortCfg.enmDataBitCount = RTSERIALPORTDATABITS_8BITS; 794 794 else 795 795 { 796 RTPrintf("Unknown data bitcount \"% s\" given\n", ValueUnion.psz);796 RTPrintf("Unknown data bitcount \"%u\" given\n", ValueUnion.u32); 797 797 return RTEXITCODE_FAILURE; 798 798 }
Note:
See TracChangeset
for help on using the changeset viewer.