Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1679514
| From | Joe Perches <joe@perches.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] Replaced Function name in debug print with %s..., __func__ |
| Date | 2017-07-02 18:20 +0200 |
| Message-ID | <tYPLk-4tt-5@gated-at.bofh.it> (permalink) |
| References | <tYNTb-37u-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Sun, 2017-07-02 at 19:41 +0530, Gaurav Pathak wrote:
> Signed-off-by: Gaurav Pathak <gauravpathak129@gmail.com>
Need a different subject like:
[PATCH] staging: rts5208: Replace embedded function names with "%s: ", __func__
and you also require some change log like
Avoid possible defects when refactoring.
> diff --git a/drivers/staging/rts5208/ms.c b/drivers/staging/rts5208/ms.c
[]
> @@ -3064,7 +3064,8 @@ static int mspro_rw_multi_sector(struct scsi_cmnd *srb,
>
> if (detect_card_cd(chip, MS_CARD) != STATUS_SUCCESS) {
> chip->rw_need_retry = 0;
> - dev_dbg(rtsx_dev(chip), "No card exist, exit mspro_rw_multi_sector\n");
> + dev_dbg(rtsx_dev(chip), "No card exist, %s\n",
> + __func__);
try not to change output too.
You could also drop what appear to be function tracing
style logging where the message is the equivalent of:
void func(args...)
{
dev_dbg("%s: entered\n", __func__)
...
}
as the generic function tracing mechanism works well.
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH] Replaced Function name in debug print with %s..., __func__ Gaurav Pathak <gauravpathak129@gmail.com> - 2017-07-02 16:20 +0200 Re: [PATCH] Replaced Function name in debug print with %s..., __func__ Joe Perches <joe@perches.com> - 2017-07-02 18:20 +0200
csiph-web