[LU-6539] incorrect integer format string used for short type Created: 29/Apr/15 Updated: 14/Mar/17 Resolved: 19/Jul/15 |
|
| Status: | Resolved |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | Lustre 2.7.0 |
| Fix Version/s: | Lustre 2.8.0 |
| Type: | Bug | Priority: | Trivial |
| Reporter: | Colin Ian King | Assignee: | Dmitry Eremin (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Build on Ubuntu 15.04, static analysis check build with current cppcheck |
||
| Severity: | 4 |
| Rank (Obsolete): | 9223372036854775807 |
| Description |
|
cppcheck found an incorrect format string being used for a short type: Checking lustre/quota/lquota_entry.c... struct lquota_site *lquota_site_alloc(const struct lu_env *env, void *parent, sprintf(hashname, "LQUOTA_HASH%u", qtype); needs to be %hu (or %hd) |
| Comments |
| Comment by Gerrit Updater [ 14/May/15 ] |
|
Dmitry Eremin (dmitry.eremin@intel.com) uploaded a new patch: http://review.whamcloud.com/14810 |
| Comment by Gerrit Updater [ 14/May/15 ] |
|
Dmitry Eremin (dmitry.eremin@intel.com) uploaded a new patch: http://review.whamcloud.com/14814 |
| Comment by Gerrit Updater [ 19/Jul/15 ] |
|
Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/14810/ |
| Comment by Peter Jones [ 19/Jul/15 ] |
|
Landed for 2.8 |