summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2013-09-13 13:45:58 +0800
committerJeremy Kerr <jk@ozlabs.org>2013-09-24 13:14:59 +0800
commit44e9d1d04a3120476ac50a14bfa34fbd091190c9 (patch)
tree562f4f233b479716ee4951a280a3a131663c1778
parent561bedfedc9565764f71ac95957accabfdc677ab (diff)
downloadtalos-petitboot-44e9d1d04a3120476ac50a14bfa34fbd091190c9.tar.gz
talos-petitboot-44e9d1d04a3120476ac50a14bfa34fbd091190c9.zip
discover/grub2: Remove debug printfs
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
-rw-r--r--discover/grub2/script.c5
1 files changed, 0 insertions, 5 deletions
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);
OpenPOWER on IntegriCloud