mirror of
https://git.code.sf.net/p/linux-ima/ima-evm-utils
synced 2025-04-27 22:32:31 +02:00
libimaevm: Rename variable from cr to newline
Rename function variable from cr (carriage return, '\r') to newline, because this is what it is. Signed-off-by: Stefan Berger <stefanb@linux.ibm.com> Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>
This commit is contained in:
parent
3a28dd2721
commit
d22cf0b005
@ -90,14 +90,14 @@ struct libimaevm_params imaevm_params = {
|
||||
|
||||
static void __attribute__ ((constructor)) libinit(void);
|
||||
|
||||
void imaevm_do_hexdump(FILE *fp, const void *ptr, int len, bool cr)
|
||||
void imaevm_do_hexdump(FILE *fp, const void *ptr, int len, bool newline)
|
||||
{
|
||||
int i;
|
||||
uint8_t *data = (uint8_t *) ptr;
|
||||
|
||||
for (i = 0; i < len; i++)
|
||||
fprintf(fp, "%02x", data[i]);
|
||||
if (cr)
|
||||
if (newline)
|
||||
fprintf(fp, "\n");
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user