projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[package] fix bluetooth and ide breakage after r18955 (#6422)
[openwrt.git]
/
package
/
wprobe
/
src
/
user
/
wprobe-util.c
diff --git
a/package/wprobe/src/user/wprobe-util.c
b/package/wprobe/src/user/wprobe-util.c
index
d5d440a
..
6a9868e
100644
(file)
--- a/
package/wprobe/src/user/wprobe-util.c
+++ b/
package/wprobe/src/user/wprobe-util.c
@@
-82,7
+82,7
@@
wprobe_dump_data(struct wprobe_iface *dev)
bool first = true;
if (!simple_mode)
bool first = true;
if (!simple_mode)
- fprintf(std
err
, "\n");
+ fprintf(std
out
, "\n");
wprobe_request_data(dev, NULL);
list_for_each_entry(attr, &dev->global_attr, list) {
if (simple_mode) {
wprobe_request_data(dev, NULL);
list_for_each_entry(attr, &dev->global_attr, list) {
if (simple_mode) {
@@
-90,7
+90,7
@@
wprobe_dump_data(struct wprobe_iface *dev)
fprintf(stdout, "[global]\n");
fprintf(stdout, "%s=%s\n", attr->name, wprobe_dump_value(attr));
} else {
fprintf(stdout, "[global]\n");
fprintf(stdout, "%s=%s\n", attr->name, wprobe_dump_value(attr));
} else {
- fprintf(std
err
, (first ?
+ fprintf(std
out
, (first ?
"Global: %s=%s\n" :
" %s=%s\n"),
attr->name,
"Global: %s=%s\n" :
" %s=%s\n"),
attr->name,
@@
-105,7
+105,7
@@
wprobe_dump_data(struct wprobe_iface *dev)
wprobe_request_data(dev, link->addr);
list_for_each_entry(attr, &dev->link_attr, list) {
if (first) {
wprobe_request_data(dev, link->addr);
list_for_each_entry(attr, &dev->link_attr, list) {
if (first) {
- fprintf(
(simple_mode ? stdout : stderr)
,
+ fprintf(
stdout
,
(simple_mode ?
"[%02x:%02x:%02x:%02x:%02x:%02x]\n%s=%s\n" :
"%02x:%02x:%02x:%02x:%02x:%02x: %s=%s\n"),
(simple_mode ?
"[%02x:%02x:%02x:%02x:%02x:%02x]\n%s=%s\n" :
"%02x:%02x:%02x:%02x:%02x:%02x: %s=%s\n"),
@@
-115,7
+115,7
@@
wprobe_dump_data(struct wprobe_iface *dev)
wprobe_dump_value(attr));
first = false;
} else {
wprobe_dump_value(attr));
first = false;
} else {
- fprintf(
(simple_mode ? stdout : stderr)
,
+ fprintf(
stdout
,
(simple_mode ? "%s=%s\n" :
" %s=%s\n"),
attr->name,
(simple_mode ? "%s=%s\n" :
" %s=%s\n"),
attr->name,
@@
-171,11
+171,11
@@
static void show_attributes(struct wprobe_iface *dev)
if (simple_mode)
return;
list_for_each_entry(attr, &dev->global_attr, list) {
if (simple_mode)
return;
list_for_each_entry(attr, &dev->global_attr, list) {
- fprintf(std
err
, "Global attribute: '%s' (%s)\n",
+ fprintf(std
out
, "Global attribute: '%s' (%s)\n",
attr->name, attr_typestr[attr->type]);
}
list_for_each_entry(attr, &dev->link_attr, list) {
attr->name, attr_typestr[attr->type]);
}
list_for_each_entry(attr, &dev->link_attr, list) {
- fprintf(std
err
, "Link attribute: '%s' (%s)\n",
+ fprintf(std
out
, "Link attribute: '%s' (%s)\n",
attr->name, attr_typestr[attr->type]);
}
}
attr->name, attr_typestr[attr->type]);
}
}
@@
-196,9
+196,9
@@
static void show_filter_simple(void *arg, const char *group, struct wprobe_filte
static void show_filter(void *arg, const char *group, struct wprobe_filter_item *items, int n_items)
{
int i;
static void show_filter(void *arg, const char *group, struct wprobe_filter_item *items, int n_items)
{
int i;
- fprintf(std
err
, "Filter group: '%s' (tx/rx)\n", group);
+ fprintf(std
out
, "Filter group: '%s' (tx/rx)\n", group);
for (i = 0; i < n_items; i++) {
for (i = 0; i < n_items; i++) {
- fprintf(std
err
, " - %s (%lld/%lld)\n",
+ fprintf(std
out
, " - %s (%lld/%lld)\n",
items[i].name, items[i].tx, items[i].rx);
}
}
items[i].name, items[i].tx, items[i].rx);
}
}
@@
-296,7
+296,7
@@
static int run_proxy(int port)
return 1;
}
while(1) {
return 1;
}
while(1) {
- unsigned int addrlen;
+ unsigned int addrlen
= sizeof(struct sockaddr_in)
;
int ret, c;
c = accept(s, (struct sockaddr *)&sa, &addrlen);
int ret, c;
c = accept(s, (struct sockaddr *)&sa, &addrlen);
@@
-415,7
+415,7
@@
int main(int argc, char **argv)
if (!dev || (list_empty(&dev->global_attr) &&
list_empty(&dev->link_attr))) {
if (err)
if (!dev || (list_empty(&dev->global_attr) &&
list_empty(&dev->link_attr))) {
if (err)
- fprintf(std
err
, "%s\n", err);
+ fprintf(std
out
, "%s\n", err);
else
fprintf(stderr, "Interface '%s' not found\n", ifname);
return 1;
else
fprintf(stderr, "Interface '%s' not found\n", ifname);
return 1;
This page took
0.043602 seconds
and
4
git commands to generate.