mirror of
https://git.openafs.org/openafs.git
synced 2025-01-31 05:27:44 +00:00
Fix typos in audit format strings
Commit 9ebff4c6caa8b499d999cfd515d4d45eb3179769 introduced audit framework support for several butc-related data types, but had a typo ('$d' for '%d') in a couple of places, that was not reported by compiler format-string checking. Fix the typo to properly print all the auditable data. (cherry picked from commit d5816fd6cd1876760a985a817dbbb3940cf3bddb) Change-Id: Iaea64ab0fe422381c298d94eff201c3525bd00c2
This commit is contained in:
parent
ed217df4b2
commit
9060181820
@ -371,7 +371,7 @@ printbuf(int rec, char *audEvent, char *afsName, afs_int32 hostId,
|
||||
|
||||
if (vaDI) {
|
||||
audit_ops->append_msg(
|
||||
"TCDUMPINTERFACE %.*s:%.*s:%.*s:%d:%d:%d:$d:%.*s:%.*s:%d:%d:%d:%d:%d ",
|
||||
"TCDUMPINTERFACE %.*s:%.*s:%.*s:%d:%d:%d:%d:%.*s:%.*s:%d:%d:%d:%d:%d ",
|
||||
TC_MAXDUMPPATH, vaDI->dumpPath, TC_MAXNAMELEN, vaDI->volumeSetName,
|
||||
TC_MAXNAMELEN, vaDI->dumpName, vaDI->parentDumpId, vaDI->dumpLevel,
|
||||
vaDI->doAppend,
|
||||
@ -396,7 +396,7 @@ printbuf(int rec, char *audEvent, char *afsName, afs_int32 hostId,
|
||||
audit_ops->append_msg("DUMPS %d ", vaDA->tc_dumpArray_len);
|
||||
for (i = 0; i < vaDA->tc_dumpArray_len; i++, desc++) {
|
||||
hostAddr.s_addr = desc->hostAddr;
|
||||
audit_ops->append_msg("DUMP %d:%d:%.*s:$d:%d:%d:%s ",
|
||||
audit_ops->append_msg("DUMP %d:%d:%.*s:%d:%d:%d:%s ",
|
||||
desc->vid, desc->vtype, TC_MAXNAMELEN, desc->name,
|
||||
desc->partition, desc->date, desc->cloneDate,
|
||||
inet_ntoa(hostAddr));
|
||||
|
Loading…
x
Reference in New Issue
Block a user