if (ret < 0)
return ret;
+ if (!fmt)
+ INFO_LOG("using default format string\n");
switch (select_conf.select_mode_arg) {
case select_mode_arg_global_list:
if (!fmt)
fmt = GLOBAL_LIST_DFLT_FMT;
atoms = global_list_atoms;
+ break;
case select_mode_arg_global_summary:
if (!fmt)
fmt = GLOBAL_SUMMARY_DFLT_FMT;
atoms = global_summary_atoms;
+ break;
case select_mode_arg_user_list:
if (!fmt)
fmt = USER_LIST_DFLT_FMT;
atoms = user_list_atoms;
+ break;
case select_mode_arg_user_summary:
if (!fmt)
fmt = USER_SUMMARY_DFLT_FMT;
atoms = user_summary_atoms;
+ break;
+ default:
+ ERROR_LOG("bad select mode\n");
+ return -ERRNO_TO_ERROR(-EINVAL);
};
+ INFO_LOG("format string: %s\n", fmt);
return parse_format_string(fmt, atoms, fi);
help:
line = select_conf.detailed_help_given?