mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-22 17:35:59 +03:00
Remove printing of LCK_CACHE
LCK_CACHE is defined as 0x100 so it cannot be passed through unsigned char parameter - remove it from the sprintf code. If the LCK_CLUSTER should be printed here - lot of code need to be reworked - so adding FIXME comment.
This commit is contained in:
parent
99aacef51c
commit
1b88184104
@ -44,6 +44,10 @@ struct lv_info {
|
|||||||
int lock_mode;
|
int lock_mode;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/*
|
||||||
|
* FIXME: 8bit value passed here -
|
||||||
|
* so only LCK_XXX defines < 0x100 can be decoded
|
||||||
|
*/
|
||||||
static const char *decode_locking_cmd(unsigned char cmdl)
|
static const char *decode_locking_cmd(unsigned char cmdl)
|
||||||
{
|
{
|
||||||
static char buf[128];
|
static char buf[128];
|
||||||
@ -109,12 +113,11 @@ static const char *decode_locking_cmd(unsigned char cmdl)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
sprintf(buf, "0x%x %s (%s|%s%s%s%s%s%s)", cmdl, command, type, scope,
|
sprintf(buf, "0x%x %s (%s|%s%s%s%s%s)", cmdl, command, type, scope,
|
||||||
cmdl & LCK_NONBLOCK ? "|NONBLOCK" : "",
|
cmdl & LCK_NONBLOCK ? "|NONBLOCK" : "",
|
||||||
cmdl & LCK_HOLD ? "|HOLD" : "",
|
cmdl & LCK_HOLD ? "|HOLD" : "",
|
||||||
cmdl & LCK_LOCAL ? "|LOCAL" : "",
|
cmdl & LCK_LOCAL ? "|LOCAL" : "",
|
||||||
cmdl & LCK_CLUSTER_VG ? "|CLUSTER_VG" : "",
|
cmdl & LCK_CLUSTER_VG ? "|CLUSTER_VG" : "");
|
||||||
cmdl & LCK_CACHE ? "|CACHE" : "");
|
|
||||||
|
|
||||||
return buf;
|
return buf;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user