diff options
author | Dana Robinson <43805+derobins@users.noreply.github.com> | 2023-06-28 15:31:32 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-28 15:31:32 (GMT) |
commit | 187ea8a9ae1405b5b46ca47a32fb1fb9e2686c98 (patch) | |
tree | baffa167d0796786241aef6b0ce76d4adec3b66e /utils/mirror_vfd/mirror_remote.c | |
parent | 7a44581a84778a1346a2fd5b6cca7d9db905a321 (diff) | |
download | hdf5-187ea8a9ae1405b5b46ca47a32fb1fb9e2686c98.zip hdf5-187ea8a9ae1405b5b46ca47a32fb1fb9e2686c98.tar.gz hdf5-187ea8a9ae1405b5b46ca47a32fb1fb9e2686c98.tar.bz2 |
Rename HD(f)printf() to (f)printf() (#3194)
Diffstat (limited to 'utils/mirror_vfd/mirror_remote.c')
-rw-r--r-- | utils/mirror_vfd/mirror_remote.c | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/utils/mirror_vfd/mirror_remote.c b/utils/mirror_vfd/mirror_remote.c index a2cf95c..065f2c8 100644 --- a/utils/mirror_vfd/mirror_remote.c +++ b/utils/mirror_vfd/mirror_remote.c @@ -43,15 +43,15 @@ mirror_log(struct mirror_log_info *info, unsigned int level, const char *format, } else if (level <= verbosity) { if (custom == true && info->prefix[0] != '\0') { - HDfprintf(stream, "%s", info->prefix); + fprintf(stream, "%s", info->prefix); } switch (level) { case (V_ERR): - HDfprintf(stream, "ERROR "); + fprintf(stream, "ERROR "); break; case (V_WARN): - HDfprintf(stream, "WARNING "); + fprintf(stream, "WARNING "); break; default: break; @@ -64,7 +64,7 @@ mirror_log(struct mirror_log_info *info, unsigned int level, const char *format, va_end(args); } - HDfprintf(stream, "\n"); + fprintf(stream, "\n"); HDfflush(stream); } /* end if sufficiently verbose to print */ } /* end mirror_log() */ @@ -98,41 +98,41 @@ mirror_log_bytes(struct mirror_log_info *info, unsigned int level, size_t n_byte /* print whole lines */ while ((n_bytes - bytes_written) >= 32) { b = buf + bytes_written; /* point to region in buffer */ - HDfprintf(stream, - "%04zX %02X%02X%02X%02X %02X%02X%02X%02X" - " %02X%02X%02X%02X %02X%02X%02X%02X" - " %02X%02X%02X%02X %02X%02X%02X%02X" - " %02X%02X%02X%02X %02X%02X%02X%02X\n", - bytes_written, b[0], b[1], b[2], b[3], b[4], b[5], b[6], b[7], b[8], b[9], b[10], b[11], - b[12], b[13], b[14], b[15], b[16], b[17], b[18], b[19], b[20], b[21], b[22], b[23], - b[24], b[25], b[26], b[27], b[28], b[29], b[30], b[31]); + fprintf(stream, + "%04zX %02X%02X%02X%02X %02X%02X%02X%02X" + " %02X%02X%02X%02X %02X%02X%02X%02X" + " %02X%02X%02X%02X %02X%02X%02X%02X" + " %02X%02X%02X%02X %02X%02X%02X%02X\n", + bytes_written, b[0], b[1], b[2], b[3], b[4], b[5], b[6], b[7], b[8], b[9], b[10], b[11], + b[12], b[13], b[14], b[15], b[16], b[17], b[18], b[19], b[20], b[21], b[22], b[23], b[24], + b[25], b[26], b[27], b[28], b[29], b[30], b[31]); bytes_written += 32; } /* start partial line */ if (n_bytes > bytes_written) { - HDfprintf(stream, "%04zX ", bytes_written); + fprintf(stream, "%04zX ", bytes_written); } /* partial line blocks */ while ((n_bytes - bytes_written) >= 4) { - HDfprintf(stream, " %02X%02X%02X%02X", buf[bytes_written], buf[bytes_written + 1], - buf[bytes_written + 2], buf[bytes_written + 3]); + fprintf(stream, " %02X%02X%02X%02X", buf[bytes_written], buf[bytes_written + 1], + buf[bytes_written + 2], buf[bytes_written + 3]); bytes_written += 4; } /* block separator before partial block */ if (n_bytes > bytes_written) { - HDfprintf(stream, " "); + fprintf(stream, " "); } /* partial block individual bytes */ while (n_bytes > bytes_written) { - HDfprintf(stream, "%02X", buf[bytes_written++]); + fprintf(stream, "%02X", buf[bytes_written++]); } /* end partial line */ - HDfprintf(stream, "\n"); + fprintf(stream, "\n"); } /* end if suitably verbose to log */ } /* end mirror_log_bytes() */ @@ -165,8 +165,8 @@ mirror_log_init(char *path, const char *prefix, unsigned int verbosity) FILE *f = NULL; f = HDfopen(path, "w"); if (NULL == f) { - HDfprintf(MIRROR_LOG_DEFAULT_STREAM, "WARN custom logging path could not be opened: %s\n", - path); + fprintf(MIRROR_LOG_DEFAULT_STREAM, "WARN custom logging path could not be opened: %s\n", + path); info->magic += 1; HDfree(info); } |