diff options
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2015-11-16 16:02:36 +0100 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2015-11-24 11:47:46 +0100 |
commit | c70f577a23073c33ae47c9dc2607a24bbee9aa84 (patch) | |
tree | 91a9de78a8c8f9cad97233363df3f08b785f6062 /include/drm/drm_rect.h | |
parent | drm: Keep coordinates in the typical x, y, w, h order instead of x, y, h, w (diff) | |
download | linux-c70f577a23073c33ae47c9dc2607a24bbee9aa84.tar.xz linux-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.h | 3 |
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); |