diff --git a/ut_assert/src/uttools.c b/ut_assert/src/uttools.c index 44e777671..7bd60adc9 100644 --- a/ut_assert/src/uttools.c +++ b/ut_assert/src/uttools.c @@ -59,7 +59,8 @@ bool UtMem2BinFile(const void *Memory, const char *Filename, uint32 Length) FILE * fp; struct stat dststat; - if ((fp = fopen(Filename, "w"))) { + if ((fp = fopen(Filename, "w"))) + { int fd = fileno(fp); fstat(fd, &dststat); if ((fchmod(fd, dststat.st_mode & ~(S_IRGRP | S_IWGRP | S_IXGRP | S_IROTH | S_IWOTH | S_IXOTH)) == 0)) @@ -67,7 +68,9 @@ bool UtMem2BinFile(const void *Memory, const char *Filename, uint32 Length) fwrite(Memory, Length, 1, fp); fclose(fp); return (true); - } else { + } + else + { printf("Unable to limit permissions on file"); fclose(fp); return (false); @@ -139,7 +142,9 @@ bool UtMem2HexFile(const void *Memory, const char *Filename, uint32 Length) } fclose(fp); return (true); - } else { + } + else + { printf("Unable to limit permissions on file\n"); fclose(fp); return (false);