mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
lvmetad: Fix previous commit
"%d" in buffer_append_vf is 64 bit wide. Using just `int` for the variable will fetch more from va_list than intended and shifting remaining arguments resulting in errors like: Internal error: Bad format string at '#orphan'
This commit is contained in:
parent
816197aaab
commit
67c539f346
@ -863,8 +863,8 @@ static response pv_found(lvmetad_state *s, request r)
|
||||
struct dm_config_tree *cft, *pvmeta_old_dev = NULL, *pvmeta_old_pvid = NULL;
|
||||
char *old;
|
||||
char *pvid_dup;
|
||||
int complete = 0, orphan = 0, changed = 0;
|
||||
int64_t seqno = -1, seqno_old = -1;
|
||||
int complete = 0, orphan = 0;
|
||||
int64_t seqno = -1, seqno_old = -1, changed = 0;
|
||||
|
||||
if (!pvid)
|
||||
return reply_fail("need PV UUID");
|
||||
|
Loading…
Reference in New Issue
Block a user