projects
/
b43-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update .gitignore
[b43-tools.git]
/
assembler
/
initvals.c
diff --git
a/assembler/initvals.c
b/assembler/initvals.c
index 5db74d149d7cb58246c8a13212ab67d60b9216cc..5c968dff4666d4f44fbb1aeb875ebed98a274817 100644
(file)
--- a/
assembler/initvals.c
+++ b/
assembler/initvals.c
@@
-296,9
+296,9
@@
static void emit_ival_section(struct ivals_context *ctx)
hdr.ver = FW_HDR_VER;
hdr.size = cpu_to_be32(ctx->ivals_count);
hdr.ver = FW_HDR_VER;
hdr.size = cpu_to_be32(ctx->ivals_count);
- fn_len = strlen(ctx->sect->name) + strlen(initvals_fn_extension ? : "") + 1;
+ fn_len = strlen(ctx->sect->name) + strlen(
cmdargs.
initvals_fn_extension ? : "") + 1;
fn = xmalloc(fn_len);
fn = xmalloc(fn_len);
- snprintf(fn, fn_len, "%s%s", ctx->sect->name, initvals_fn_extension ? : "");
+ snprintf(fn, fn_len, "%s%s", ctx->sect->name,
cmdargs.
initvals_fn_extension ? : "");
fd = fopen(fn, "w+");
if (!fd) {
fprintf(stderr, "Could not open initval output file \"%s\"\n", fn);
fd = fopen(fn, "w+");
if (!fd) {
fprintf(stderr, "Could not open initval output file \"%s\"\n", fn);
@@
-328,7
+328,7
@@
static void emit_ival_section(struct ivals_context *ctx)
filesize += size;
}
filesize += size;
}
- if (
arg_
print_sizes) {
+ if (
cmdargs.
print_sizes) {
printf("%s: %d values (%u bytes)\n",
fn, ctx->ivals_count, filesize);
}
printf("%s: %d values (%u bytes)\n",
fn, ctx->ivals_count, filesize);
}