From 3ab23ac5800c594f04e0d8602d8fbc967cc55b7c Mon Sep 17 00:00:00 2001 From: Todd Martin Date: Fri, 8 Oct 2021 00:02:59 -0700 Subject: [PATCH] Fix formatting --- ut_assert/src/uttools.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/ut_assert/src/uttools.c b/ut_assert/src/uttools.c index 3454cdba3..4e8dc2829 100644 --- a/ut_assert/src/uttools.c +++ b/ut_assert/src/uttools.c @@ -59,10 +59,13 @@ bool UtMem2BinFile(const void *Memory, const char *Filename, uint32 Length) FILE * fp; struct stat dststat; - if ((stat(Filename, &dststat) == 0)) { - if ((chmod(Filename, dststat.st_mode & ~(S_IRGRP | S_IWGRP | S_IXGRP | S_IROTH | S_IWOTH | S_IXOTH)) == 0)) { + if ((stat(Filename, &dststat) == 0)) + { + if ((chmod(Filename, dststat.st_mode & ~(S_IRGRP | S_IWGRP | S_IXGRP | S_IROTH | S_IWOTH | S_IXOTH)) == 0)) + { stat(Filename, &dststat); - if ((fp = fopen(Filename, "w"))) { + if ((fp = fopen(Filename, "w"))) + { fwrite(Memory, Length, 1, fp); fclose(p); return (true);