![](https://seccdn.libravatar.org/avatar/e2145bc5cf53dda95c308a3c75e8fef3.jpg?s=120&d=mm&r=g)
Hello community, here is the log from the commit of package clinfo for openSUSE:Factory checked in at 2016-01-28 17:23:49 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/clinfo (Old) and /work/SRC/openSUSE:Factory/.clinfo.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "clinfo" Changes: -------- --- /work/SRC/openSUSE:Factory/clinfo/clinfo.changes 2016-01-08 15:23:46.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.clinfo.new/clinfo.changes 2016-01-28 17:24:41.000000000 +0100 @@ -1,0 +2,6 @@ +Tue Jan 26 08:44:01 UTC 2016 - mpluskal@suse.com + +- Update to 2.1.16.01.12 + * no upstream changelog provided + +------------------------------------------------------------------- Old: ---- clinfo-2.1.16.01.06.tar.gz New: ---- clinfo-2.1.16.01.12.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ clinfo.spec ++++++ --- /var/tmp/diff_new_pack.63rQk2/_old 2016-01-28 17:24:42.000000000 +0100 +++ /var/tmp/diff_new_pack.63rQk2/_new 2016-01-28 17:24:42.000000000 +0100 @@ -18,7 +18,7 @@ Name: clinfo -Version: 2.1.16.01.06 +Version: 2.1.16.01.12 Release: 0 Summary: It reports status information for all installed OpenCL ICDs License: SUSE-Public-Domain @@ -45,15 +45,13 @@ make %{?_smp_mflags} %install -mkdir -p %{buildroot}/%{_bindir} -mkdir -p %{buildroot}/%{_mandir}/man1/ -install -pm 0755 clinfo %{buildroot}/%{_bindir} -install -pm 0644 man/clinfo.1 %{buildroot}/%{_mandir}/man1 +install -D -p -m 0755 clinfo %{buildroot}%{_bindir}/clinfo +install -D -p -m 0644 man/clinfo.1 %{buildroot}%{_mandir}/man1/clinfo.1 %files %defattr (-,root,root) %doc LICENSE README %{_bindir}/clinfo -%{_mandir}/man1/clinfo.1.* +%{_mandir}/man1/clinfo.1%{ext_man} %changelog ++++++ clinfo-2.1.16.01.06.tar.gz -> clinfo-2.1.16.01.12.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/clinfo-2.1.16.01.06/man/clinfo.1 new/clinfo-2.1.16.01.12/man/clinfo.1 --- old/clinfo-2.1.16.01.06/man/clinfo.1 2016-01-06 12:07:55.000000000 +0100 +++ new/clinfo-2.1.16.01.12/man/clinfo.1 2016-01-12 11:51:23.000000000 +0100 @@ -1,4 +1,4 @@ -.TH CLINFO 1 "2016-01-06" "clinfo 2.1.16.01.06" +.TH CLINFO 1 "2016-01-12" "clinfo 2.1.16.01.12" .SH NAME diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/clinfo-2.1.16.01.06/src/clinfo.c new/clinfo-2.1.16.01.12/src/clinfo.c --- old/clinfo-2.1.16.01.06/src/clinfo.c 2016-01-06 12:07:55.000000000 +0100 +++ new/clinfo-2.1.16.01.12/src/clinfo.c 2016-01-12 11:51:23.000000000 +0100 @@ -880,8 +880,9 @@ time_t time = val/UINT64_C(1000000000); szval += snprintf(strbuf, bufsz, "%" PRIu64 "ns (", val); szval += bufcpy(szval, ctime(&time)); + /* overwrite ctime's newline with the closing parenthesis */ if (szval < bufsz) - strbuf[szval] = ')'; + strbuf[szval - 1] = ')'; } show_strbuf(pname, 0); return had_error; @@ -2483,6 +2484,8 @@ const char *pname; // "ICD loader *" }; +static const char * const oclicdl_pfx = "OCLICD"; + #define LINFO(symbol, name) { symbol, #symbol, "ICD loader " name } struct icdl_info_traits linfo_traits[] = { LINFO(CL_ICDL_NAME, "Name"), @@ -2541,9 +2544,18 @@ #endif if (clGetICDLoaderInfoOCLICD != NULL) { - puts("\nICD loader properties"); + /* TODO think of a sensible header in CLINFO_RAW */ + if (output_mode != CLINFO_RAW) + puts("\nICD loader properties"); current_function = __func__; + if (output_mode == CLINFO_RAW) { + line_pfx_len = strlen(oclicdl_pfx) + 5; + REALLOC(line_pfx, line_pfx_len, "line prefix OCL ICD"); + sprintf(strbuf, "[%s/*]", oclicdl_pfx); + sprintf(line_pfx, "%*s", -line_pfx_len, strbuf); + } + for (current_line = 0; current_line < ARRAY_SIZE(linfo_traits); ++current_line) { const struct icdl_info_traits *traits = linfo_traits + current_line; current_param = traits->sname; @@ -2586,7 +2598,7 @@ void version(void) { - puts("clinfo version 2.1.16.01.06"); + puts("clinfo version 2.1.16.01.12"); } void usage(void) @@ -2674,7 +2686,8 @@ listPlatformsAndDevices(show_offline); } else { showDevices(show_offline); - checkNullBehavior(); + if (output_mode != CLINFO_RAW) + checkNullBehavior(); oclIcdProps(); }