Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
devel:tools:lttng
lttngtop
lttngtop-fix-format.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File lttngtop-fix-format.patch of Package lttngtop
--- a/src/cursesdisplay.c +++ b/src/cursesdisplay.c @@ -193,7 +193,7 @@ void print_headers(int line, char *desc, void set_window_title(WINDOW *win, char *title) { wattron(win, A_BOLD); - mvwprintw(win, 0, 1, title); + mvwprintw(win, 0, 1, "%s", title); wattroff(win, A_BOLD); } @@ -347,7 +347,7 @@ void update_header() end.tm_hour, end.tm_min, end.tm_sec, ts_nsec_end); mvwprintw(header, 1, 4, "CPUs"); wattroff(header, A_BOLD); - wprintw(header, "\t%d\t(max/cpu : %0.2f%)", data->cpu_table->len, + wprintw(header, "\t%d\t(max/cpu : %0.2f%%)", data->cpu_table->len, 100.0/data->cpu_table->len); print_headers(2, "Threads", data->nbthreads, data->nbnewthreads, -1*(data->nbdeadthreads)); @@ -577,7 +577,7 @@ void update_cputop_display() wattron(center, A_UNDERLINE); pref_current_sort = i; } - mvwprintw(center, 1, column, cputopview[i].title); + mvwprintw(center, 1, column, "%s", cputopview[i].title); wattroff(center, A_UNDERLINE); column += 10; } @@ -747,7 +747,7 @@ void update_process_details() while (g_hash_table_iter_next (&iter, &key, (gpointer) &perfn1)) { print_key_title((char *) key, line++); perfn2 = g_hash_table_lookup(tmp->perf, (char *) key); - wprintw(center, "%d", perfn2 ? perfn2->count : 0); + wprintw(center, "%lu", perfn2 ? perfn2->count : 0); } line++; @@ -758,7 +758,7 @@ void update_process_details() pref_current_sort = i; wattron(center, A_UNDERLINE); } - mvwprintw(center, line, column, fileview[i].title); + mvwprintw(center, line, column, "%s", fileview[i].title); wattroff(center, A_UNDERLINE); column += 10; } @@ -916,7 +916,7 @@ void update_iostream() pref_current_sort = i; wattron(center, A_UNDERLINE); } - mvwprintw(center, 1, column, iostreamtopview[i].title); + mvwprintw(center, 1, column, "%s", iostreamtopview[i].title); wattroff(center, A_UNDERLINE); column += 12; }
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor