diff options
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2015-11-16 17:02:36 +0200 |
---|---|---|
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 | 02e6f379ec63f81d3e09abebfee76feeff40efa0 (diff) | |
download | lwn-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.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); |