summaryrefslogtreecommitdiff
path: root/include/drm/drm_rect.h
diff options
context:
space:
mode:
authorVille Syrjälä <ville.syrjala@linux.intel.com>2015-11-16 17:02:36 +0200
committerDaniel Vetter <daniel.vetter@ffwll.ch>2015-11-24 11:47:46 +0100
commitc70f577a23073c33ae47c9dc2607a24bbee9aa84 (patch)
tree91a9de78a8c8f9cad97233363df3f08b785f6062 /include/drm/drm_rect.h
parent02e6f379ec63f81d3e09abebfee76feeff40efa0 (diff)
downloadlwn-c70f577a23073c33ae47c9dc2607a24bbee9aa84.tar.gz
lwn-c70f577a23073c33ae47c9dc2607a24bbee9aa84.zip
drm: Add "prefix" parameter to drm_rect_debug_print()
Allow the caller to specify a "prefix" string to drm_rect_debug_print() to make it easier to see which drm_rect is being printed. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'include/drm/drm_rect.h')
-rw-r--r--include/drm/drm_rect.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/drm/drm_rect.h b/include/drm/drm_rect.h
index 26bb55e9e8b6..83bb156d4356 100644
--- a/include/drm/drm_rect.h
+++ b/include/drm/drm_rect.h
@@ -162,7 +162,8 @@ int drm_rect_calc_hscale_relaxed(struct drm_rect *src,
int drm_rect_calc_vscale_relaxed(struct drm_rect *src,
struct drm_rect *dst,
int min_vscale, int max_vscale);
-void drm_rect_debug_print(const struct drm_rect *r, bool fixed_point);
+void drm_rect_debug_print(const char *prefix,
+ const struct drm_rect *r, bool fixed_point);
void drm_rect_rotate(struct drm_rect *r,
int width, int height,
unsigned int rotation);