From: Jeremy Kerr Date: Fri, 13 Sep 2013 05:45:58 +0000 (+0800) Subject: discover/grub2: Remove debug printfs X-Git-Tag: v1.0.0~467 X-Git-Url: http://git.ozlabs.org/?p=petitboot;a=commitdiff_plain;h=44e9d1d04a3120476ac50a14bfa34fbd091190c9 discover/grub2: Remove debug printfs Signed-off-by: Jeremy Kerr --- diff --git a/discover/grub2/script.c b/discover/grub2/script.c index 65cab15..3fee470 100644 --- a/discover/grub2/script.c +++ b/discover/grub2/script.c @@ -23,8 +23,6 @@ static const char *env_lookup(struct grub2_script *script, { struct env_entry *entry; - printf("%s: %.*s\n", __func__, name_len, name); - list_for_each_entry(&script->environment, entry, list) if (!strncmp(entry->name, name, name_len) && entry->name[name_len] == '\0') @@ -43,7 +41,6 @@ static bool expand_word(struct grub2_script *script, struct grub2_word *word) src = word->text; n = regexec(&script->var_re, src, 1, &match, 0); - printf("%s %s: %d\n", __func__, word->text, n); if (n != 0) return false; @@ -56,8 +53,6 @@ static bool expand_word(struct grub2_script *script, struct grub2_word *word) if (!val) val = ""; - printf("repl: %s\n", val); - dest = talloc_strndup(script, src, match.rm_so); dest = talloc_asprintf_append(dest, "%s%s", val, src + match.rm_eo);