Re: [UPDATE][7/24]several messages
Jan Engelhardt <[email protected]>
| Newsgroups | gmane.comp.file-systems.ext2.devel,gmane.linux.kernel |
|---|---|
| Message-ID | <[email protected]> |
>Summary of this patch:
> [7/24] modify format strings in print(bfs)
> - As i_blocks of VFS inode gets 8 byte variable, change its
> string format to %lld.
>
>- if (inode->i_size || inode->i_blocks) dprintf("Registered inode with %lld size, %ld blocks\n", inode->i_size, inode->i_blocks);
>+ if (inode->i_size || inode->i_blocks) dprintf("Registered inode with %lld size, %lld blocks\n", inode->i_size, inode->i_blocks);
Does gcc automatically promote/demote the arguments according to the %
specifier? Otherwise, you should add an explicit cast to (long) or
(long long) with varargs functions, since you cannot be sure that
->i_blocks (blkcnt_t) is the same as long/long long.
>Summary of this patch:
> [8/24] modify format strings in print(efs)
> - As i_blocks of VFS inode gets 8 byte variable, change its
> string format to %lld.
>
>@@ -22,7 +22,7 @@ int efs_get_block(struct inode *inode, s
> /*
> * i have no idea why this happens as often as it does
> */
>- printk(KERN_WARNING "EFS: bmap(): block %d >= %ld (filesize %ld)\n",
>+ printk(KERN_WARNING "EFS: bmap(): block %d >= %lld (filesize %ld)\n",
Jan Engelhardt
--
-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642