diff options
author | Hiroshi DOYU <hdoyu@nvidia.com> | 2011-11-21 14:17:09 +0200 |
---|---|---|
committer | Varun Wadekar <vwadekar@nvidia.com> | 2011-12-15 12:09:24 +0530 |
commit | 0f1e5fe255788265b3c2848ae739a8a912fcc636 (patch) | |
tree | 798c27a8ef13fa9cd6e42772e69c2cf40c76e535 /arch/arm/mach-tegra/iovmm.c | |
parent | 4d6d6e4b91edacf21ab5d467bf98074e8b07c6a3 (diff) |
ARM: tegra: iovmm: Remove homebrew macro iovmprint()
iovmprint() doesn't do much. Use standard snprintf() directly
Change-Id: I437dc6767e9984ad72c2d4adbb7b389b3f32d10f
Signed-off-by: Hiroshi DOYU <hdoyu@nvidia.com>
Reviewed-on: http://git-master/r/66370
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/iovmm.c')
-rw-r--r-- | arch/arm/mach-tegra/iovmm.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/arch/arm/mach-tegra/iovmm.c b/arch/arm/mach-tegra/iovmm.c index 129993e4363f..1b900bf49dd0 100644 --- a/arch/arm/mach-tegra/iovmm.c +++ b/arch/arm/mach-tegra/iovmm.c @@ -96,8 +96,6 @@ static tegra_iovmm_addr_t iovmm_align_down(struct tegra_iovmm_device *dev, #define SIMALIGN(b, a) (((b)->start % (a)) ? ((a) - ((b)->start % (a))) : 0) -#define iovmprint(fmt, arg...) snprintf(page+len, count-len, fmt, ## arg) - size_t tegra_iovmm_get_max_free(struct tegra_iovmm_client *client) { struct rb_node *n; @@ -159,20 +157,22 @@ static int tegra_iovmm_read_proc(char *page, char **start, off_t off, int len = 0; mutex_lock(&iovmm_group_list_lock); - len += iovmprint("\ngroups\n"); + len += snprintf(page + len, count - len, "\ngroups\n"); if (list_empty(&iovmm_groups)) - len += iovmprint("\t<empty>\n"); + len += snprintf(page + len, count - len, "\t<empty>\n"); else { list_for_each_entry(grp, &iovmm_groups, group_list) { - len += iovmprint("\t%s (device: %s)\n", - (grp->name) ? grp->name : "<unnamed>", + len += snprintf(page + len, count - len, + "\t%s (device: %s)\n", + grp->name ? grp->name : "<unnamed>", grp->domain->dev->name); tegra_iovmm_block_stats(grp->domain, &num, &num_free, &total, &total_free, &max_free); total >>= 10; total_free >>= 10; max_free >>= 10; - len += iovmprint("\t\tsize: %uKiB free: %uKiB " + len += snprintf(page + len, count - len, + "\t\tsize: %uKiB free: %uKiB " "largest: %uKiB (%u free / %u total blocks)\n", total, total_free, max_free, num_free, num); } |