added outputerr/outputstd log functions

This patch adds two function that is going to be used for output to stdout and stderr. This is done in order to have printf called from one file.

Signed-off-by: Ildar Muslukhov <ildarm@google.com>
wired outputstd/err functions

This patch replaces printf call with outputstd or outputerr functions where appropriate.

Signed-off-by: Ildar Muslukhov <ildarm@google.com>
refactored output function

This patch refactors output function and adds boundary checking to avoid overflow.

Signed-off-by: Ildar Muslukhov <ildarm@google.com>
wired in output function instead of printf (and some missing outputstd)

This patch replaces the remaining printf with output function call. Some of the printf are replaced with outputstd.

Signed-off-by: Ildar Muslukhov <ildarm@google.com>
Added and wired bufferless loging function for syscall parameters

Reworked color_arg function call and output into a bufferless approach in order to fix stack smash detected bug. Moved the whole logging logic to log.c file (seems to be more appropriate place for it)

Signed-off-by: Ildar Muslukhov <ildarm@google.com>
scripts: TRINITY_PATH defaults to "."

TRINITY_PATH may be changed in the enviroment

Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
scripts: change mkdir tmp to mktemp

Signed-off-by: Anders Roxell <anders.roxell@linaro.org>