Change-Id: I4c0180ba52b50d8adad9cf1d0501a0cc2dd2fdb3
Signed-off-by: Hongjun Ni <[email protected]>
if (PREDICT_FALSE(entry0 == 0))
{
- error0 = NSH_INPUT_ERROR_NO_MAPPING;
+ error0 = NSH_INPUT_ERROR_NO_ENTRY;
goto trace0;
}
if (PREDICT_FALSE(entry1 == 0))
{
- error1 = NSH_INPUT_ERROR_NO_MAPPING;
+ error1 = NSH_INPUT_ERROR_NO_ENTRY;
goto trace1;
}
if (PREDICT_FALSE(entry0 == 0))
{
- error0 = NSH_INPUT_ERROR_NO_MAPPING;
+ error0 = NSH_INPUT_ERROR_NO_ENTRY;
goto trace00;
}
#define foreach_nsh_input_error \
_(MAPPED, "NSH header found and mapped") \
_(NO_MAPPING, "no mapping for nsh key") \
+_(NO_ENTRY, "no entry for nsh key") \
_(INVALID_NEXT_PROTOCOL, "invalid next protocol") \
typedef enum {