tools/firewire: nosy-dump: use linux/firewire-constants.h
[linux-2.6-block.git] / tools / firewire / decode-fcp.c
index 9cd1550db24adeccbf12dfdf3c325da3a3fc3752..e41223b6a4c8538ec90ba664f4026445cdc76b3f 100644 (file)
@@ -1,5 +1,7 @@
-#include <stdlib.h>
+#include <linux/firewire-constants.h>
 #include <stdio.h>
+#include <stdlib.h>
+
 #include "list.h"
 #include "nosy-dump.h"
 
@@ -176,7 +178,7 @@ decode_fcp(struct link_transaction *t)
            ((unsigned long long) t->request->packet.common.offset_high << 32) |
            t->request->packet.common.offset_low;
 
-       if (t->request->packet.common.tcode != TCODE_WRITE_BLOCK)
+       if (t->request->packet.common.tcode != TCODE_WRITE_BLOCK_REQUEST)
                return 0;
 
        if (offset == CSR_FCP_COMMAND || offset == CSR_FCP_RESPONSE) {