page_pool: remove PP_FLAG_PAGE_FRAG
[platform/kernel/linux-rpi.git] / drivers / iommu / omap-iommu-debug.c
index a99afb5..259f652 100644 (file)
@@ -32,12 +32,12 @@ static inline bool is_omap_iommu_detached(struct omap_iommu *obj)
                ssize_t bytes;                                          \
                const char *str = "%20s: %08x\n";                       \
                const int maxcol = 32;                                  \
-               bytes = snprintf(p, maxcol, str, __stringify(name),     \
+               if (len < maxcol)                                       \
+                       goto out;                                       \
+               bytes = scnprintf(p, maxcol, str, __stringify(name),    \
                                 iommu_read_reg(obj, MMU_##name));      \
                p += bytes;                                             \
                len -= bytes;                                           \
-               if (len < maxcol)                                       \
-                       goto out;                                       \
        } while (0)
 
 static ssize_t