X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=tools%2Fproftool.c;h=ddf870f66ee7d732a0338e28fb429185476b78b0;hb=78b7d37b1b2b692b9e38780bdbae430b25202932;hp=aa05e77ece547f352f1c0919dcf21f8b8a093773;hpb=d4125ebc8dae28e8ade858ba519bca7fbeb6ccae;p=oweals%2Fu-boot.git diff --git a/tools/proftool.c b/tools/proftool.c index aa05e77ece..ddf870f66e 100644 --- a/tools/proftool.c +++ b/tools/proftool.c @@ -1,20 +1,7 @@ /* * Copyright (c) 2013 Google, Inc * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License as - * published by the Free Software Foundation; either version 2 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, - * MA 02111-1307 USA + * SPDX-License-Identifier: GPL-2.0+ */ /* Decode and dump U-Boot profiling information */ @@ -29,6 +16,7 @@ #include #include #include +#include #include #include @@ -444,9 +432,10 @@ static int read_trace_config(FILE *fin) err = regcomp(&line->regex, tok, REG_NOSUB); if (err) { + int r = regex_report_error(&line->regex, err, + "compile", tok); free(line); - return regex_report_error(&line->regex, err, "compile", - tok); + return r; } /* link this new one to the end of the list */