aboutsummaryrefslogtreecommitdiffstats
path: root/tools/firewire/nosy-dump.c
diff options
context:
space:
mode:
authorStefan Richter <stefanr@s5r6.in-berlin.de>2010-07-22 05:58:05 -0400
committerStefan Richter <stefanr@s5r6.in-berlin.de>2010-07-27 05:04:12 -0400
commit83ef7c75939f45f8da46976cdca4db0727276a2d (patch)
tree65463156511af958e28f4fabc3acdfa2dd3798f9 /tools/firewire/nosy-dump.c
parent269fe1023191a338736c71ba4f4db13839747772 (diff)
tools/firewire: nosy-dump: use linux/firewire-constants.h
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Diffstat (limited to 'tools/firewire/nosy-dump.c')
-rw-r--r--tools/firewire/nosy-dump.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/tools/firewire/nosy-dump.c b/tools/firewire/nosy-dump.c
index 32c48556170b..5241cb402d6b 100644
--- a/tools/firewire/nosy-dump.c
+++ b/tools/firewire/nosy-dump.c
@@ -20,6 +20,7 @@
20#include <byteswap.h> 20#include <byteswap.h>
21#include <endian.h> 21#include <endian.h>
22#include <fcntl.h> 22#include <fcntl.h>
23#include <linux/firewire-constants.h>
23#include <poll.h> 24#include <poll.h>
24#include <popt.h> 25#include <popt.h>
25#include <signal.h> 26#include <signal.h>
@@ -522,8 +523,8 @@ handle_request_packet(uint32_t *data, size_t length)
522 523
523 switch (sa->ack) { 524 switch (sa->ack) {
524 case ACK_COMPLETE: 525 case ACK_COMPLETE:
525 if (p->common.tcode != TCODE_WRITE_QUADLET && 526 if (p->common.tcode != TCODE_WRITE_QUADLET_REQUEST &&
526 p->common.tcode != TCODE_WRITE_BLOCK) 527 p->common.tcode != TCODE_WRITE_BLOCK_REQUEST)
527 /* error, unified transactions only allowed for write */; 528 /* error, unified transactions only allowed for write */;
528 list_remove(&t->link); 529 list_remove(&t->link);
529 handle_transaction(t); 530 handle_transaction(t);
@@ -967,7 +968,7 @@ int main(int argc, const char *argv[])
967 968
968 filter = ~0; 969 filter = ~0;
969 if (!option_iso) 970 if (!option_iso)
970 filter &= ~(1 << TCODE_ISO_DATA); 971 filter &= ~(1 << TCODE_STREAM_DATA);
971 if (!option_cycle_start) 972 if (!option_cycle_start)
972 filter &= ~(1 << TCODE_CYCLE_START); 973 filter &= ~(1 << TCODE_CYCLE_START);
973 if (view == VIEW_STATS) 974 if (view == VIEW_STATS)