@@ -225,12 +225,13 @@ static int cn_print_exe_file(struct core_name *cn, bool name_only)
225225 return ret ;
226226}
227227
228- /* format_corename will inspect the pattern parameter, and output a
229- * name into corename, which must have space for at least
230- * CORENAME_MAX_SIZE bytes plus one byte for the zero terminator.
228+ /*
229+ * coredump_parse will inspect the pattern parameter, and output a name
230+ * into corename, which must have space for at least CORENAME_MAX_SIZE
231+ * bytes plus one byte for the zero terminator.
231232 */
232- static int format_corename (struct core_name * cn , struct coredump_params * cprm ,
233- size_t * * argv , int * argc )
233+ static int coredump_parse (struct core_name * cn , struct coredump_params * cprm ,
234+ size_t * * argv , int * argc )
234235{
235236 const struct cred * cred = current_cred ();
236237 const char * pat_ptr = core_pattern ;
@@ -910,7 +911,7 @@ void do_coredump(const kernel_siginfo_t *siginfo)
910911
911912 old_cred = override_creds (cred );
912913
913- retval = format_corename (& cn , & cprm , & argv , & argc );
914+ retval = coredump_parse (& cn , & cprm , & argv , & argc );
914915 if (retval < 0 ) {
915916 coredump_report_failure ("format_corename failed, aborting core" );
916917 goto fail_unlock ;
0 commit comments