Commit 25b88d10 authored by Kirill Tkhai's avatar Kirill Tkhai Committed by Pavel Emelyanov

binfmt_misc: Make debug printed using pr_debug()

It's a debug message, and it shouldn't be printed with
pr_perror(). Also, we interested in debug in the both
cases: magic and extensions.
Signed-off-by: 's avatarKirill Tkhai <ktkhai@virtuozzo.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
parent bd27328b
...@@ -1534,7 +1534,6 @@ static int binfmt_misc_restore(struct mount_info *mi) ...@@ -1534,7 +1534,6 @@ static int binfmt_misc_restore(struct mount_info *mi)
ret = -1; ret = -1;
} else if (bme->magic) { } else if (bme->magic) {
ret = make_bfmtm_magic_str(buf, bme); ret = make_bfmtm_magic_str(buf, bme);
pr_perror("xxxbuf=%s\n", buf);
} else if (bme->extension) { } else if (bme->extension) {
/* :name:E::extension::interpreter:flags */ /* :name:E::extension::interpreter:flags */
ret = snprintf(buf, BINFMT_MISC_STR, ":%s:E::%s::%s:%s", ret = snprintf(buf, BINFMT_MISC_STR, ":%s:E::%s::%s:%s",
...@@ -1542,8 +1541,10 @@ static int binfmt_misc_restore(struct mount_info *mi) ...@@ -1542,8 +1541,10 @@ static int binfmt_misc_restore(struct mount_info *mi)
bme->flags ? : "\0"); bme->flags ? : "\0");
} }
if (ret > 0) if (ret > 0) {
pr_debug("binfmt_misc_pattern=%s\n", buf);
ret = restore_binfmt_misc_entry(mi->mountpoint, buf, bme); ret = restore_binfmt_misc_entry(mi->mountpoint, buf, bme);
}
binfmt_misc_entry__free_unpacked(bme, NULL); binfmt_misc_entry__free_unpacked(bme, NULL);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment