summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Bolte <sbolte@lavabit.com>2013-05-15 15:26:19 +0200
committerStefan Bolte <sbolte@lavabit.com>2013-05-15 15:26:19 +0200
commitfccd949553f1673088da714dede78579f1490cd0 (patch)
treee69a82ff0ff3219b178ca2b9786796315adee8d3
parent3043ad7dacafe1d6306f5b471f845a50aea2a4c0 (diff)
downloaddwb-fccd949553f1673088da714dede78579f1490cd0.zip
Moving "Packaging ..." message to begin of exar_pack
-rw-r--r--tools/exar/lexar.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/exar/lexar.c b/tools/exar/lexar.c
index 5562a606..6d135457 100644
--- a/tools/exar/lexar.c
+++ b/tools/exar/lexar.c
@@ -59,6 +59,7 @@ pack(const char *fpath, const struct stat *st, int tf)
memset(buffer, 0, sizeof(buffer));
strncpy(buffer + HDR_NAME, stripped, SZ_NAME);
+ LOG(1, "Packing %s (archive path: %s)\n", fpath, stripped);
if (S_ISDIR(st->st_mode))
buffer[HDR_DFLAG] = DIR_FLAG;
else if (S_ISREG(st->st_mode))
@@ -82,8 +83,6 @@ pack(const char *fpath, const struct stat *st, int tf)
snprintf(buffer + HDR_SIZE, SZ_SIZE, "%.11o", (unsigned int)st->st_size);
fwrite(buffer, 1, sizeof(buffer), s_out);
- LOG(1, "Packing %s (archive path: %s)\n", fpath, stripped);
-
if (f != NULL)
{
LOG(2, "Writing %s (%lu bytes)\n", stripped, (st->st_size));