Compare commits
1 commit
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
12bb30d6f1 |
2 changed files with 31 additions and 1 deletions
24
dropwatch-ppc64-warnings.patch
Normal file
24
dropwatch-ppc64-warnings.patch
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
diff -up dropwatch-1.4/src/lookup_kas.c.rh1 dropwatch-1.4/src/lookup_kas.c
|
||||
--- dropwatch-1.4/src/lookup_kas.c.rh1 2013-07-31 17:34:37.155640182 +0200
|
||||
+++ dropwatch-1.4/src/lookup_kas.c 2013-07-31 17:47:07.392624689 +0200
|
||||
@@ -102,7 +102,7 @@ static int lookup_kas_proc(__u64 pc, str
|
||||
* - "%pK %c %s\n" (for kernel internal symbols), or
|
||||
* - "%pK %c %s\t[%s]\n" (for module-provided symbols)
|
||||
*/
|
||||
- if (fscanf(pf, "%llx %*s %as [ %*[^]] ]", &ppc, &name) < 0) {
|
||||
+ if (fscanf(pf, "%llx %*s %as [ %*[^]] ]", (unsigned long long *)&ppc, &name) < 0) {
|
||||
perror("Error Scanning File: ");
|
||||
break;
|
||||
}
|
||||
diff -up dropwatch-1.4/src/main.c.rh1 dropwatch-1.4/src/main.c
|
||||
--- dropwatch-1.4/src/main.c.rh1 2013-07-31 17:23:14.289302715 +0200
|
||||
+++ dropwatch-1.4/src/main.c 2013-07-31 17:23:48.113130660 +0200
|
||||
@@ -333,7 +333,7 @@ void handle_dm_alert_msg(struct netlink_
|
||||
printf ("%d drops at location %p\n", alert->points[i].count, location);
|
||||
else
|
||||
printf ("%d drops at %s+%llx (%p)\n",
|
||||
- alert->points[i].count, res.symbol, res.offset, location);
|
||||
+ alert->points[i].count, res.symbol, (unsigned long long)res.offset, location);
|
||||
acount++;
|
||||
if (alimit && (acount == alimit)) {
|
||||
printf("Alert limit reached, deactivating!\n");
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
Summary: Kernel dropped packet monitor
|
||||
Name: dropwatch
|
||||
Version: 1.4
|
||||
Release: 5%{?dist}
|
||||
Release: 6%{?dist}
|
||||
Source0: https://fedorahosted.org/releases/d/r/dropwatch/dropwatch-%{version}.tbz2
|
||||
URL: http://fedorahosted.org/dropwatch
|
||||
License: GPLv2+
|
||||
|
|
@ -11,12 +11,15 @@ BuildRequires: kernel-devel, libnl-devel, readline-devel
|
|||
BuildRequires: binutils-devel, binutils-static libnl3-devel pkgconfig
|
||||
Requires: libnl3, readline
|
||||
|
||||
Patch0: dropwatch-ppc64-warnings.patch
|
||||
|
||||
%description
|
||||
dropwatch is an utility to interface to the kernel to monitor for dropped
|
||||
network packets.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch0 -p1
|
||||
|
||||
%build
|
||||
cd src
|
||||
|
|
@ -42,6 +45,9 @@ rm -rf $RPM_BUILD_ROOT
|
|||
%doc COPYING
|
||||
|
||||
%changelog
|
||||
* Wed Jul 31 2013 Neil Horman <nhorman@redhat.com> - 1.4-6
|
||||
- Fix ppc64 warnings (bz99047)
|
||||
|
||||
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue