aboutsummaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-10-26 17:21:12 +0000
committerChristian Grothoff <christian@grothoff.org>2013-10-26 17:21:12 +0000
commit5f574d0829e6e4c20283a8fe6372609ce39dadaa (patch)
tree4b5e749c32b9b8622ac0d6ab84c24db68296caf6 /src/util
parent84b11c83de28c606157a210e679f3519a41921b9 (diff)
downloadgnunet-5f574d0829e6e4c20283a8fe6372609ce39dadaa.tar.gz
gnunet-5f574d0829e6e4c20283a8fe6372609ce39dadaa.zip
-log parse errors as WARNINGS
Diffstat (limited to 'src/util')
-rw-r--r--src/util/strings.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/util/strings.c b/src/util/strings.c
index 60c667ca4..00c0cf0e1 100644
--- a/src/util/strings.c
+++ b/src/util/strings.c
@@ -1371,7 +1371,7 @@ parse_port_policy (const char *port_policy,
1371 (e < s) || 1371 (e < s) ||
1372 (e > 0xFFFF) ) 1372 (e > 0xFFFF) )
1373 { 1373 {
1374 GNUNET_log (GNUNET_ERROR_TYPE_ERROR, 1374 GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
1375 _("Port not in range\n")); 1375 _("Port not in range\n"));
1376 return GNUNET_SYSERR; 1376 return GNUNET_SYSERR;
1377 } 1377 }
@@ -1387,7 +1387,7 @@ parse_port_policy (const char *port_policy,
1387 if ( (0 == s) || 1387 if ( (0 == s) ||
1388 (s > 0xFFFF) ) 1388 (s > 0xFFFF) )
1389 { 1389 {
1390 GNUNET_log (GNUNET_ERROR_TYPE_ERROR, 1390 GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
1391 _("Port not in range\n")); 1391 _("Port not in range\n"));
1392 return GNUNET_SYSERR; 1392 return GNUNET_SYSERR;
1393 } 1393 }
@@ -1480,7 +1480,7 @@ GNUNET_STRINGS_parse_ipv4_policy (const char *routeListX)
1480 for (j = 0; j < 8; j++) 1480 for (j = 0; j < 8; j++)
1481 if (temps[j] > 0xFF) 1481 if (temps[j] > 0xFF)
1482 { 1482 {
1483 LOG (GNUNET_ERROR_TYPE_ERROR, 1483 LOG (GNUNET_ERROR_TYPE_WARNING,
1484 _("Invalid format for IP: `%s'\n"), 1484 _("Invalid format for IP: `%s'\n"),
1485 &routeList[pos]); 1485 &routeList[pos]);
1486 GNUNET_free (result); 1486 GNUNET_free (result);
@@ -1511,7 +1511,7 @@ GNUNET_STRINGS_parse_ipv4_policy (const char *routeListX)
1511 for (j = 0; j < 4; j++) 1511 for (j = 0; j < 4; j++)
1512 if (temps[j] > 0xFF) 1512 if (temps[j] > 0xFF)
1513 { 1513 {
1514 LOG (GNUNET_ERROR_TYPE_ERROR, 1514 LOG (GNUNET_ERROR_TYPE_WARNING,
1515 _("Invalid format for IP: `%s'\n"), 1515 _("Invalid format for IP: `%s'\n"),
1516 &routeList[pos]); 1516 &routeList[pos]);
1517 GNUNET_free (result); 1517 GNUNET_free (result);
@@ -1537,7 +1537,7 @@ GNUNET_STRINGS_parse_ipv4_policy (const char *routeListX)
1537 } 1537 }
1538 else 1538 else
1539 { 1539 {
1540 LOG (GNUNET_ERROR_TYPE_ERROR, 1540 LOG (GNUNET_ERROR_TYPE_WARNING,
1541 _("Invalid network notation ('/%d' is not legal in IPv4 CIDR)."), 1541 _("Invalid network notation ('/%d' is not legal in IPv4 CIDR)."),
1542 slash); 1542 slash);
1543 GNUNET_free (result); 1543 GNUNET_free (result);
@@ -1559,7 +1559,7 @@ GNUNET_STRINGS_parse_ipv4_policy (const char *routeListX)
1559 for (j = 0; j < 4; j++) 1559 for (j = 0; j < 4; j++)
1560 if (temps[j] > 0xFF) 1560 if (temps[j] > 0xFF)
1561 { 1561 {
1562 LOG (GNUNET_ERROR_TYPE_ERROR, 1562 LOG (GNUNET_ERROR_TYPE_WARNING,
1563 _("Invalid format for IP: `%s'\n"), 1563 _("Invalid format for IP: `%s'\n"),
1564 &routeList[pos]); 1564 &routeList[pos]);
1565 GNUNET_free (result); 1565 GNUNET_free (result);
@@ -1580,7 +1580,7 @@ GNUNET_STRINGS_parse_ipv4_policy (const char *routeListX)
1580 i++; 1580 i++;
1581 continue; 1581 continue;
1582 } 1582 }
1583 LOG (GNUNET_ERROR_TYPE_ERROR, 1583 LOG (GNUNET_ERROR_TYPE_WARNING,
1584 _("Invalid format for IP: `%s'\n"), 1584 _("Invalid format for IP: `%s'\n"),
1585 &routeList[pos]); 1585 &routeList[pos]);
1586 GNUNET_free (result); 1586 GNUNET_free (result);
@@ -1589,7 +1589,7 @@ GNUNET_STRINGS_parse_ipv4_policy (const char *routeListX)
1589 } 1589 }
1590 if (pos < strlen (routeList)) 1590 if (pos < strlen (routeList))
1591 { 1591 {
1592 LOG (GNUNET_ERROR_TYPE_ERROR, 1592 LOG (GNUNET_ERROR_TYPE_WARNING,
1593 _("Invalid format: `%s'\n"), 1593 _("Invalid format: `%s'\n"),
1594 &routeListX[pos]); 1594 &routeListX[pos]);
1595 GNUNET_free (result); 1595 GNUNET_free (result);
@@ -1641,7 +1641,7 @@ GNUNET_STRINGS_parse_ipv6_policy (const char *routeListX)
1641 count++; 1641 count++;
1642 if (';' != routeList[len - 1]) 1642 if (';' != routeList[len - 1])
1643 { 1643 {
1644 LOG (GNUNET_ERROR_TYPE_ERROR, 1644 LOG (GNUNET_ERROR_TYPE_WARNING,
1645 _("Invalid network notation (does not end with ';': `%s')\n"), 1645 _("Invalid network notation (does not end with ';': `%s')\n"),
1646 routeList); 1646 routeList);
1647 GNUNET_free (routeList); 1647 GNUNET_free (routeList);
@@ -1691,13 +1691,13 @@ GNUNET_STRINGS_parse_ipv6_policy (const char *routeListX)
1691 if ((1 != SSCANF (&routeList[slash + 1], "%u", &bits)) || (bits > 128)) 1691 if ((1 != SSCANF (&routeList[slash + 1], "%u", &bits)) || (bits > 128))
1692 { 1692 {
1693 if (0 == ret) 1693 if (0 == ret)
1694 LOG (GNUNET_ERROR_TYPE_ERROR, 1694 LOG (GNUNET_ERROR_TYPE_WARNING,
1695 _("Wrong format `%s' for netmask\n"), 1695 _("Wrong format `%s' for netmask\n"),
1696 &routeList[slash + 1]); 1696 &routeList[slash + 1]);
1697 else 1697 else
1698 { 1698 {
1699 errno = save; 1699 errno = save;
1700 LOG_STRERROR (GNUNET_ERROR_TYPE_ERROR, "inet_pton"); 1700 LOG_STRERROR (GNUNET_ERROR_TYPE_WARNING, "inet_pton");
1701 } 1701 }
1702 GNUNET_free (result); 1702 GNUNET_free (result);
1703 GNUNET_free (routeList); 1703 GNUNET_free (routeList);
@@ -1722,7 +1722,7 @@ GNUNET_STRINGS_parse_ipv6_policy (const char *routeListX)
1722 if (ret <= 0) 1722 if (ret <= 0)
1723 { 1723 {
1724 if (0 == ret) 1724 if (0 == ret)
1725 LOG (GNUNET_ERROR_TYPE_ERROR, 1725 LOG (GNUNET_ERROR_TYPE_WARNING,
1726 _("Wrong format `%s' for network\n"), 1726 _("Wrong format `%s' for network\n"),
1727 &routeList[slash + 1]); 1727 &routeList[slash + 1]);
1728 else 1728 else