summaryrefslogtreecommitdiff
path: root/utility/mount-helpers.c
diff options
context:
space:
mode:
authorKees Cook <keescook@chromium.org>2012-06-15 13:55:24 -0700
committerGerrit <chrome-bot@google.com>2012-06-20 14:08:24 -0700
commit6a312261fd8b18ad8cdf9c5784631311c49c79c9 (patch)
tree97fe4d2b5d174b1f8fdbcd0d491830847ba793ed /utility/mount-helpers.c
parentd7f8f3574c31dbbd506619e8f68eecf5b39ebf54 (diff)
downloadvboot-factory-2475.B.tar.gz
mount-encrypted: use minimum mkfs size on migrationfactory-2475.B
When doing a migration, try to guess at a smaller minimum size for the initial filesystem so that systems with giant drives are not needlessly penalized. Start with an even smaller initial filesystem size (16M). Move debug time counters into the main .o file to avoid compiler insanity when turning debug on and off. BUG=chromium-os:22172 TEST=link build & boot, manual testing Change-Id: I47c3ffb6e4cd88c4f0ead6fa21724704c7ed1630 Signed-off-by: Kees Cook <keescook@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/25638 Reviewed-by: Elly Jones <ellyjones@chromium.org>
Diffstat (limited to 'utility/mount-helpers.c')
-rw-r--r--utility/mount-helpers.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/utility/mount-helpers.c b/utility/mount-helpers.c
index 751d3ad4..9a472bb9 100644
--- a/utility/mount-helpers.c
+++ b/utility/mount-helpers.c
@@ -658,7 +658,7 @@ int keyfile_write(const char *keyfile, uint8_t *system_key, char *string)
}
length = cipher_length + final_len;
- DEBUG("Writing %d bytes to %s", length, keyfile);
+ DEBUG("Writing %zu bytes to %s", length, keyfile);
/* TODO(keescook): replace this with a mode-400 writer. */
if (!g_file_set_contents(keyfile, (gchar *)cipher, length, &error)) {
ERROR("Unable to write %s: %s", keyfile, error->message);