]> git.ozlabs.org Git - petitboot/commitdiff
discover/grub2: Remove debug printfs
authorJeremy Kerr <jk@ozlabs.org>
Fri, 13 Sep 2013 05:45:58 +0000 (13:45 +0800)
committerJeremy Kerr <jk@ozlabs.org>
Tue, 24 Sep 2013 05:14:59 +0000 (13:14 +0800)
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
discover/grub2/script.c

index 65cab1523ec00038c2d9c38f66d8b40c756deeae..3fee4705622524f34d0139f1861e2cc07b789932 100644 (file)
@@ -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);