mirror of
git://sourceware.org/git/lvm2.git
synced 2024-10-29 04:55:51 +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;
|
struct dm_config_tree *cft, *pvmeta_old_dev = NULL, *pvmeta_old_pvid = NULL;
|
||||||
char *old;
|
char *old;
|
||||||
char *pvid_dup;
|
char *pvid_dup;
|
||||||
int complete = 0, orphan = 0, changed = 0;
|
int complete = 0, orphan = 0;
|
||||||
int64_t seqno = -1, seqno_old = -1;
|
int64_t seqno = -1, seqno_old = -1, changed = 0;
|
||||||
|
|
||||||
if (!pvid)
|
if (!pvid)
|
||||||
return reply_fail("need PV UUID");
|
return reply_fail("need PV UUID");
|
||||||
|
Loading…
Reference in New Issue
Block a user