Lines Matching defs:error_number
206 static void print_rmnetctl_lib_errors(uint16_t error_number)
208 if ((error_number > RMNETCTL_API_SUCCESS) &&
209 (error_number < RMNETCTL_API_ERR_ENUM_LENGTH)) {
210 printf("%s", rmnetctl_error_code_text[error_number]);
212 if ((error_number >= RMNETCFG_ERR_NUM_START) &&
213 (error_number < RMNETCFG_ERR_NUM_START + RMNETCFG_TOTAL_ERR_MSGS)) {
215 [error_number - RMNETCFG_ERR_NUM_START]);
216 if ((error_number == RMNETCTL_CFG_SUCCESS_HELP_COMMAND) ||
217 (error_number == RMNETCTL_CFG_FAILURE_NO_COMMAND))
225 * @param error_number Error number returned from the API and the CLI
228 static void print_rmnet_api_status(int return_code, uint16_t error_number)
234 print_rmnetctl_lib_errors(error_number);
236 printf("KERNEL %s", rmnetctl_error_code_text[error_number]);
259 uint16_t error_number = RMNETCTL_CFG_FAILURE_NO_COMMAND;
271 return_code = rmnetctl_init(&handle, &error_number);
273 print_rmnet_api_status(return_code, error_number);
276 error_number = RMNETCTL_CFG_FAILURE_NO_COMMAND;
280 argv[1], &error_number, RMNETCTL_DEVICE_ASSOCIATE);
283 argv[1], &error_number, RMNETCTL_DEVICE_UNASSOCIATE);
287 argv[1], ®ister_status, &error_number);
294 argv[1], &egress_flags, &agg_size, &agg_count, &error_number);
304 handle, argv[1], &ingress_flags, &tail_spacing, &error_number);
313 _STRTOUI32(argv[1]), &error_number, RMNETCTL_NEW_VND, argv[2]);
317 _STRTOUI32(argv[1]), &error_number, RMNETCTL_NEW_VND);
323 &error_number, buffer, 32);
330 _STRTOUI32(argv[1]), &error_number, RMNETCTL_FREE_VND);
337 &error_number);
344 RMNETCTL_DEL_FLOW, &error_number);
360 &egress_dev_name, RMNET_MAX_STR_LEN, &error_number);
372 RMNETCTL_ADD_FLOW, &error_number);
379 argv[4], &error_number);
385 &error_number);
389 _STRTOI32(argv[1]), argv[2], &error_number);
391 print_rmnet_api_status(return_code, error_number);