mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
Don't print char type[8] as a plain string
pvck prints 'extra' character from the label since there is no '\0' after the struct label entry and just uint64_t follows directly. So avoid it by limiting 8 chars to be printed. https://www.redhat.com/archives/lvm-devel/2011-January/msg00109.html Signed-off-by: Paul Bolle <pebolle tiscali nl>
This commit is contained in:
parent
faf7c493f8
commit
eafbdf3029
@ -1,5 +1,6 @@
|
||||
Version 2.02.89 -
|
||||
==================================
|
||||
Don't print char type[8] as a plain string in pvck PV type.
|
||||
Use vg memory pool implicitely for vg read.
|
||||
Always use vg memory pool for allocated lv segment.
|
||||
Remove extra 4kB buffer allocated on stack in print_log().
|
||||
|
@ -3794,7 +3794,7 @@ int pv_analyze(struct cmd_context *cmd, const char *pv_name,
|
||||
return 0;
|
||||
}
|
||||
|
||||
log_print("Found label on %s, sector %"PRIu64", type=%s",
|
||||
log_print("Found label on %s, sector %"PRIu64", type=%.8s",
|
||||
pv_name, label->sector, label->type);
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user