[GFS2] Cast 64 bit printk args to unsigned long long.
Signed-off-by: David Teigland <teigland@redhat.com> Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
This commit is contained in:
committed by
Steven Whitehouse
parent
90cdd2083a
commit
9229f01349
@@ -421,7 +421,7 @@ int dlm_recover_master_reply(struct dlm_ls *ls, struct dlm_rcom *rc)
|
|||||||
r = recover_list_find(ls, rc->rc_id);
|
r = recover_list_find(ls, rc->rc_id);
|
||||||
if (!r) {
|
if (!r) {
|
||||||
log_error(ls, "dlm_recover_master_reply no id %llx",
|
log_error(ls, "dlm_recover_master_reply no id %llx",
|
||||||
rc->rc_id);
|
(unsigned long long)rc->rc_id);
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -35,7 +35,8 @@ static inline void gdlm_bast(void *astarg, int mode)
|
|||||||
|
|
||||||
if (!mode) {
|
if (!mode) {
|
||||||
printk(KERN_INFO "lock_dlm: bast mode zero %x,%llx\n",
|
printk(KERN_INFO "lock_dlm: bast mode zero %x,%llx\n",
|
||||||
lp->lockname.ln_type, lp->lockname.ln_number);
|
lp->lockname.ln_type,
|
||||||
|
(unsigned long long)lp->lockname.ln_number);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -154,7 +155,7 @@ static inline void make_strname(struct lm_lockname *lockname,
|
|||||||
struct gdlm_strname *str)
|
struct gdlm_strname *str)
|
||||||
{
|
{
|
||||||
sprintf(str->name, "%8x%16llx", lockname->ln_type,
|
sprintf(str->name, "%8x%16llx", lockname->ln_type,
|
||||||
lockname->ln_number);
|
(unsigned long long)lockname->ln_number);
|
||||||
str->namelen = GDLM_STRNAME_BYTES;
|
str->namelen = GDLM_STRNAME_BYTES;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -197,8 +198,8 @@ void gdlm_delete_lp(struct gdlm_lock *lp)
|
|||||||
list_del_init(&lp->blist);
|
list_del_init(&lp->blist);
|
||||||
if (!list_empty(&lp->delay_list))
|
if (!list_empty(&lp->delay_list))
|
||||||
list_del_init(&lp->delay_list);
|
list_del_init(&lp->delay_list);
|
||||||
gdlm_assert(!list_empty(&lp->all_list),
|
gdlm_assert(!list_empty(&lp->all_list), "%x,%llx", lp->lockname.ln_type,
|
||||||
"%x,%llx", lp->lockname.ln_type, lp->lockname.ln_number);
|
(unsigned long long)lp->lockname.ln_number);
|
||||||
list_del_init(&lp->all_list);
|
list_del_init(&lp->all_list);
|
||||||
ls->all_locks_count--;
|
ls->all_locks_count--;
|
||||||
spin_unlock(&ls->async_lock);
|
spin_unlock(&ls->async_lock);
|
||||||
@@ -253,7 +254,7 @@ unsigned int gdlm_do_lock(struct gdlm_lock *lp)
|
|||||||
set_bit(LFL_ACTIVE, &lp->flags);
|
set_bit(LFL_ACTIVE, &lp->flags);
|
||||||
|
|
||||||
log_debug("lk %x,%llx id %x %d,%d %x", lp->lockname.ln_type,
|
log_debug("lk %x,%llx id %x %d,%d %x", lp->lockname.ln_type,
|
||||||
lp->lockname.ln_number, lp->lksb.sb_lkid,
|
(unsigned long long)lp->lockname.ln_number, lp->lksb.sb_lkid,
|
||||||
lp->cur, lp->req, lp->lkf);
|
lp->cur, lp->req, lp->lkf);
|
||||||
|
|
||||||
error = dlm_lock(ls->dlm_lockspace, lp->req, &lp->lksb, lp->lkf,
|
error = dlm_lock(ls->dlm_lockspace, lp->req, &lp->lksb, lp->lkf,
|
||||||
@@ -269,8 +270,8 @@ unsigned int gdlm_do_lock(struct gdlm_lock *lp)
|
|||||||
if (error) {
|
if (error) {
|
||||||
log_debug("%s: gdlm_lock %x,%llx err=%d cur=%d req=%d lkf=%x "
|
log_debug("%s: gdlm_lock %x,%llx err=%d cur=%d req=%d lkf=%x "
|
||||||
"flags=%lx", ls->fsname, lp->lockname.ln_type,
|
"flags=%lx", ls->fsname, lp->lockname.ln_type,
|
||||||
lp->lockname.ln_number, error, lp->cur, lp->req,
|
(unsigned long long)lp->lockname.ln_number, error,
|
||||||
lp->lkf, lp->flags);
|
lp->cur, lp->req, lp->lkf, lp->flags);
|
||||||
return LM_OUT_ERROR;
|
return LM_OUT_ERROR;
|
||||||
}
|
}
|
||||||
return LM_OUT_ASYNC;
|
return LM_OUT_ASYNC;
|
||||||
@@ -289,15 +290,16 @@ static unsigned int gdlm_do_unlock(struct gdlm_lock *lp)
|
|||||||
lkf = DLM_LKF_VALBLK;
|
lkf = DLM_LKF_VALBLK;
|
||||||
|
|
||||||
log_debug("un %x,%llx %x %d %x", lp->lockname.ln_type,
|
log_debug("un %x,%llx %x %d %x", lp->lockname.ln_type,
|
||||||
lp->lockname.ln_number, lp->lksb.sb_lkid, lp->cur, lkf);
|
(unsigned long long)lp->lockname.ln_number,
|
||||||
|
lp->lksb.sb_lkid, lp->cur, lkf);
|
||||||
|
|
||||||
error = dlm_unlock(ls->dlm_lockspace, lp->lksb.sb_lkid, lkf, NULL, lp);
|
error = dlm_unlock(ls->dlm_lockspace, lp->lksb.sb_lkid, lkf, NULL, lp);
|
||||||
|
|
||||||
if (error) {
|
if (error) {
|
||||||
log_debug("%s: gdlm_unlock %x,%llx err=%d cur=%d req=%d lkf=%x "
|
log_debug("%s: gdlm_unlock %x,%llx err=%d cur=%d req=%d lkf=%x "
|
||||||
"flags=%lx", ls->fsname, lp->lockname.ln_type,
|
"flags=%lx", ls->fsname, lp->lockname.ln_type,
|
||||||
lp->lockname.ln_number, error, lp->cur, lp->req,
|
(unsigned long long)lp->lockname.ln_number, error,
|
||||||
lp->lkf, lp->flags);
|
lp->cur, lp->req, lp->lkf, lp->flags);
|
||||||
return LM_OUT_ERROR;
|
return LM_OUT_ERROR;
|
||||||
}
|
}
|
||||||
return LM_OUT_ASYNC;
|
return LM_OUT_ASYNC;
|
||||||
@@ -338,8 +340,8 @@ void gdlm_cancel(lm_lock_t *lock)
|
|||||||
if (test_bit(LFL_DLM_CANCEL, &lp->flags))
|
if (test_bit(LFL_DLM_CANCEL, &lp->flags))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
log_info("gdlm_cancel %x,%llx flags %lx",
|
log_info("gdlm_cancel %x,%llx flags %lx", lp->lockname.ln_type,
|
||||||
lp->lockname.ln_type, lp->lockname.ln_number, lp->flags);
|
(unsigned long long)lp->lockname.ln_number, lp->flags);
|
||||||
|
|
||||||
spin_lock(&ls->async_lock);
|
spin_lock(&ls->async_lock);
|
||||||
if (!list_empty(&lp->delay_list)) {
|
if (!list_empty(&lp->delay_list)) {
|
||||||
@@ -356,10 +358,10 @@ void gdlm_cancel(lm_lock_t *lock)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!test_bit(LFL_ACTIVE, &lp->flags) ||
|
if (!test_bit(LFL_ACTIVE, &lp->flags) ||
|
||||||
test_bit(LFL_DLM_UNLOCK, &lp->flags)) {
|
test_bit(LFL_DLM_UNLOCK, &lp->flags)) {
|
||||||
log_info("gdlm_cancel skip %x,%llx flags %lx",
|
log_info("gdlm_cancel skip %x,%llx flags %lx",
|
||||||
lp->lockname.ln_type, lp->lockname.ln_number,
|
lp->lockname.ln_type,
|
||||||
lp->flags);
|
(unsigned long long)lp->lockname.ln_number, lp->flags);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -372,7 +374,8 @@ void gdlm_cancel(lm_lock_t *lock)
|
|||||||
NULL, lp);
|
NULL, lp);
|
||||||
|
|
||||||
log_info("gdlm_cancel rv %d %x,%llx flags %lx", error,
|
log_info("gdlm_cancel rv %d %x,%llx flags %lx", error,
|
||||||
lp->lockname.ln_type, lp->lockname.ln_number, lp->flags);
|
lp->lockname.ln_type,
|
||||||
|
(unsigned long long)lp->lockname.ln_number, lp->flags);
|
||||||
|
|
||||||
if (error == -EBUSY)
|
if (error == -EBUSY)
|
||||||
clear_bit(LFL_DLM_CANCEL, &lp->flags);
|
clear_bit(LFL_DLM_CANCEL, &lp->flags);
|
||||||
@@ -448,8 +451,8 @@ static void unhold_null_lock(struct gdlm_lock *lp)
|
|||||||
{
|
{
|
||||||
struct gdlm_lock *lpn = lp->hold_null;
|
struct gdlm_lock *lpn = lp->hold_null;
|
||||||
|
|
||||||
gdlm_assert(lpn, "%x,%llx",
|
gdlm_assert(lpn, "%x,%llx", lp->lockname.ln_type,
|
||||||
lp->lockname.ln_type, lp->lockname.ln_number);
|
(unsigned long long)lp->lockname.ln_number);
|
||||||
lpn->lksb.sb_lvbptr = NULL;
|
lpn->lksb.sb_lvbptr = NULL;
|
||||||
lpn->lvb = NULL;
|
lpn->lvb = NULL;
|
||||||
set_bit(LFL_UNLOCK_DELETE, &lpn->flags);
|
set_bit(LFL_UNLOCK_DELETE, &lpn->flags);
|
||||||
|
@@ -93,7 +93,8 @@ int gdlm_plock(lm_lockspace_t *lockspace, struct lm_lockname *name,
|
|||||||
if (!rv) {
|
if (!rv) {
|
||||||
if (posix_lock_file_wait(file, fl) < 0)
|
if (posix_lock_file_wait(file, fl) < 0)
|
||||||
log_error("gdlm_plock: vfs lock error %x,%llx",
|
log_error("gdlm_plock: vfs lock error %x,%llx",
|
||||||
name->ln_type, name->ln_number);
|
name->ln_type,
|
||||||
|
(unsigned long long)name->ln_number);
|
||||||
}
|
}
|
||||||
|
|
||||||
kfree(op);
|
kfree(op);
|
||||||
@@ -113,7 +114,7 @@ int gdlm_punlock(lm_lockspace_t *lockspace, struct lm_lockname *name,
|
|||||||
|
|
||||||
if (posix_lock_file_wait(file, fl) < 0)
|
if (posix_lock_file_wait(file, fl) < 0)
|
||||||
log_error("gdlm_punlock: vfs unlock error %x,%llx",
|
log_error("gdlm_punlock: vfs unlock error %x,%llx",
|
||||||
name->ln_type, name->ln_number);
|
name->ln_type, (unsigned long long)name->ln_number);
|
||||||
|
|
||||||
op->info.optype = GDLM_PLOCK_OP_UNLOCK;
|
op->info.optype = GDLM_PLOCK_OP_UNLOCK;
|
||||||
op->info.pid = fl->fl_pid;
|
op->info.pid = fl->fl_pid;
|
||||||
@@ -243,7 +244,7 @@ static ssize_t dev_write(struct file *file, const char __user *u, size_t count,
|
|||||||
wake_up(&recv_wq);
|
wake_up(&recv_wq);
|
||||||
else
|
else
|
||||||
printk(KERN_INFO "gdlm dev_write no op %x %llx\n", info.fsid,
|
printk(KERN_INFO "gdlm dev_write no op %x %llx\n", info.fsid,
|
||||||
info.number);
|
(unsigned long long)info.number);
|
||||||
return count;
|
return count;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user