lkml.org 
[lkml]   [2016]   [Aug]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH V6 5/5] perf tools: adding sink configuration for cs_etm PMU
On Thu, Aug 25, 2016 at 02:20:45PM -0600, Mathieu Poirier wrote:

SNIP

> return NULL;
> }
> +
> +static FILE *cs_device__open_file(const char *name)
> +{
> + struct stat st;
> + char path[PATH_MAX];
> + const char *sysfs;
> +
> + sysfs = sysfs__mountpoint();
> + if (!sysfs)
> + return NULL;
> +
> + snprintf(path, PATH_MAX,
> + "%s" CS_BUS_DEVICE_PATH "%s", sysfs, name);
> +
> + printf("path: %s\n", path);

should this be pr_info ?

jirka

\
 
 \ /
  Last update: 2016-09-17 09:58    [W:0.632 / U:0.056 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site