All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kristen Carlson Accardi <kristen at linux.intel.com>
To: powertop@lists.01.org
Subject: Re: [Powertop] [PATCH 3/3] process: Get rid of unused dbg_printf_pevent_info()
Date: Thu, 31 Jan 2013 15:27:41 -0800	[thread overview]
Message-ID: <20130131152741.5e9ecff7@bluebird.jf.intel.com> (raw)
In-Reply-To: 1354547600-1743-3-git-send-email-namhyung@gmail.com

[-- Attachment #1: Type: text/plain, Size: 1318 bytes --]

On Tue,  4 Dec 2012 00:13:20 +0900
Namhyung Kim <namhyung(a)gmail.com> wrote:

> This function is not used, just remove it.
> This fixes following warning:
> 
>   CXX    process/powertop-do_process.o
> process/do_process.cpp:190: warning: ‘void
> dbg_printf_pevent_info(event_format*, pevent_record*)’ defined but
> not used
> 
> Signed-off-by: Namhyung Kim <namhyung(a)gmail.com>
> ---
>  src/process/do_process.cpp |   13 -------------
>  1 file changed, 13 deletions(-)
> 
> diff --git a/src/process/do_process.cpp b/src/process/do_process.cpp
> index 6ac0fae..a07b3f3 100644
> --- a/src/process/do_process.cpp
> +++ b/src/process/do_process.cpp
> @@ -187,19 +187,6 @@ int dont_blame_me(char *comm)
>  	return 0;
>  }
>  
> -static void dbg_printf_pevent_info(struct event_format *event,
> struct pevent_record *rec) -{
> -	static struct trace_seq s;
> -
> -	event->pevent->print_raw = 1;
> -	trace_seq_init(&s);
> -	pevent_event_info(&s, event, rec);
> -	trace_seq_putc(&s, '\n');
> -	trace_seq_terminate(&s);
> -	fprintf(stderr, "%.*s", s.len, s.buffer);
> -	trace_seq_destroy(&s);
> -}
> -
>  static char * get_pevent_field_str(void *trace, struct event_format
> *event, struct format_field *field) {
>  	unsigned long long offset, len;

Applied, thanks.

Kristen

             reply	other threads:[~2013-01-31 23:27 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-31 23:27 Kristen Carlson Accardi [this message]
  -- strict thread matches above, loose matches on Subject: below --
2012-12-03 16:16 [Powertop] [PATCH 3/3] process: Get rid of unused dbg_printf_pevent_info() Sergey Senozhatsky
2012-12-03 15:13 Namhyung Kim

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130131152741.5e9ecff7@bluebird.jf.intel.com \
    --to=powertop@lists.01.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.