Skip to content

Nice to have: platform independent Bash, armv6j support #11

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion configure
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# Default options
BUILD_DIR="build"
Expand Down
5 changes: 4 additions & 1 deletion source/log/source/log.c
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,11 @@ int log_write_impl_va(const char * name, const size_t line, const char * func, c
record_ctor.file = file;
record_ctor.level = level;
record_ctor.message = message;
#ifdef __arm__
record_ctor.data = &variable_args;
#else
record_ctor.data = variable_args;

#endif
result = log_impl_write(impl, &record_ctor);

va_end(variable_args);
Expand Down
6 changes: 4 additions & 2 deletions source/log/source/log_policy_format_text.c
Original file line number Diff line number Diff line change
Expand Up @@ -227,9 +227,11 @@ static size_t log_policy_format_text_serialize_impl_va(log_policy policy, const
if (log_record_data(record) != NULL)
{
va_list args_copy;

#ifdef __arm__
va_copy(args_copy, *((va_list*)log_record_data(record)));
#else
va_copy(args_copy, log_record_data(record));

#endif
body_length = vsnprintf(buffer_body, size, log_record_message(record), args_copy);

va_end(args_copy);
Expand Down