msm: camera: Retelimit log in msm_vb2_buf_cleanup.
Ratelimit log in msm_vb2_buf_cleanup to prevent excessive logging when stream is NULL. Change-Id: Ia687375c8e2a2683a4d32cd0eb984f731b2288e7 Signed-off-by: Trishansh Bhardwaj <tbhardwa@codeaurora.org>
This commit is contained in:
parent
1389ff19f5
commit
183516d967
1 changed files with 2 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
|||
/* Copyright (c) 2012-2015, The Linux Foundation. All rights reserved.
|
||||
/* Copyright (c) 2012-2016, The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License version 2 and
|
||||
|
@ -122,7 +122,7 @@ static void msm_vb2_stop_stream(struct vb2_queue *q)
|
|||
|
||||
stream = msm_get_stream_from_vb2q(q);
|
||||
if (!stream) {
|
||||
pr_err("%s:%d] NULL stream", __func__, __LINE__);
|
||||
pr_err_ratelimited("%s:%d] NULL stream", __func__, __LINE__);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue