]> git.zerfleddert.de Git - proxmark3-svn/log
proxmark3-svn
7 years agoadd first attempt at lf miller decoding
marshmellow42 [Tue, 14 Mar 2017 17:16:30 +0000 (13:16 -0400)]
add first attempt at lf miller decoding

don't have any tags capable to test and not yet hooked up to data
rawdemod...

7 years agofixed bug in new refactored detectST
marshmellow42 [Mon, 13 Mar 2017 17:27:38 +0000 (13:27 -0400)]
fixed bug in new refactored detectST

forgot to return i...

7 years agomeant to put clock detection before demods
marshmellow42 [Mon, 13 Mar 2017 03:11:52 +0000 (23:11 -0400)]
meant to put clock detection before demods

... fixing that.
no code changed here...

7 years agorefactor detectST a little...
marshmellow42 [Mon, 13 Mar 2017 02:57:01 +0000 (22:57 -0400)]
refactor detectST a little...

+ a little more shuffling

7 years agore-organize lfdemod.c
marshmellow42 [Mon, 13 Mar 2017 02:47:50 +0000 (22:47 -0400)]
re-organize lfdemod.c

sorry but it was ugly  (still is... but i can get to things easier)

7 years agofix: add missing #includes
pwpiwi [Sun, 12 Mar 2017 17:39:47 +0000 (18:39 +0100)]
fix: add missing #includes

7 years agofix: add missing #includes
pwpiwi [Sun, 12 Mar 2017 17:36:24 +0000 (18:36 +0100)]
fix: add missing #includes

7 years agoProvide msclock() as Milliseconds timer for performance measures (#231)
pwpiwi [Sun, 12 Mar 2017 14:06:27 +0000 (15:06 +0100)]
Provide msclock() as Milliseconds timer for performance measures (#231)

- don't use clock(). It has different functionalities in Windows and Linux
- move sleep functions to util.h

7 years agoUpgrade crapto1 library to v3.3 (#232)
pwpiwi [Sun, 12 Mar 2017 14:05:54 +0000 (15:05 +0100)]
Upgrade crapto1 library to v3.3 (#232)

- fix standalone tools mfkey32, mfkey64 and nonce2key to use common crapto1 library
- fix compiler warnings in tools/mfkey/mfkey64.c and tools/nonce2key/nonce2key.c
- allow crapto1.c to compile on ARM hosts
- add @iceman1001's readme.txt to tools/mfkey

7 years agostarted to enable demod graphing
marshmellow42 [Sun, 12 Mar 2017 00:21:53 +0000 (19:21 -0500)]
started to enable demod graphing

first step: find graph start position from each rawdemod -now complete.
todo: apply to each individual demod
todo: graph it

7 years agoCreate directory client/obj/crapto1 (missing in commit 33443e7)
pwpiwi [Sat, 11 Mar 2017 07:50:32 +0000 (08:50 +0100)]
Create directory client/obj/crapto1 (missing in commit 33443e7)

7 years agoCode cleanup: deduplicate crapto1 library (#228)
pwpiwi [Thu, 9 Mar 2017 10:12:50 +0000 (11:12 +0100)]
Code cleanup: deduplicate crapto1 library (#228)

- merge the existing 4 crapto1 sources into common/crapto1

7 years agoMerge pull request #230 from zhovner/master
Iceman [Wed, 8 Mar 2017 11:20:47 +0000 (12:20 +0100)]
Merge pull request #230 from zhovner/master

Adding homebrew tap method for macOS

7 years agoAdding homebrew tap method for macOS 230/head
Pavel Zhovner [Wed, 8 Mar 2017 11:16:33 +0000 (14:16 +0300)]
Adding homebrew tap method for macOS

7 years agoMerge pull request #229 from marshmellow42/master
Iceman [Wed, 8 Mar 2017 05:42:08 +0000 (06:42 +0100)]
Merge pull request #229 from marshmellow42/master

add iceman1001 s lf visa2000 commands

7 years agoadd iceman1001 s lf visa2000 commands 229/head
marshmellow42 [Tue, 7 Mar 2017 13:48:16 +0000 (08:48 -0500)]
add iceman1001 s lf visa2000 commands

-reset my fork due to corruption - now add back in the lf visa
commands...
also adjusts lfdemod all detect clock functions to always return a
starting point of the clock detected ( for graphing purposes)

7 years agoMerge pull request #227 from pwpiwi/client_fixes
pwpiwi [Mon, 6 Mar 2017 21:19:15 +0000 (22:19 +0100)]
Merge pull request #227 from pwpiwi/client_fixes

Client code cleanup:

7 years agoClient code cleanup: 227/head
pwpiwi [Mon, 6 Mar 2017 19:07:02 +0000 (20:07 +0100)]
Client code cleanup:
- cleanup some header files and respective #includes
- rearrange functions (definition before first use)
- use SCNxxx instead of PRIxxx macros in scanf()
- use stdbool true/false instead of self defined TRUE/FALSE

7 years agoMerge pull request #226 from pwpiwi/fix_defines
Iceman [Mon, 6 Mar 2017 19:46:09 +0000 (20:46 +0100)]
Merge pull request #226 from pwpiwi/fix_defines

Fix some #defines

7 years agoMerge pull request #225 from pwpiwi/armsrc_header_fixes
Iceman [Mon, 6 Mar 2017 19:45:58 +0000 (20:45 +0100)]
Merge pull request #225 from pwpiwi/armsrc_header_fixes

Remove local armsrc/stdint.h and fix some other #includes

7 years agoFix some #defines 226/head
pwpiwi [Mon, 6 Mar 2017 18:55:23 +0000 (19:55 +0100)]
Fix some #defines
- Use -D_ISOC99_SOURCE instead of -D__USE_MINGW_ANSI_STDIO=1
- WIN32 is deprecated. Use _WIN32 instead

7 years agoRemove local armsrc/stdint.h and fix some other #includes 225/head
pwpiwi [Mon, 6 Mar 2017 18:22:35 +0000 (19:22 +0100)]
Remove local armsrc/stdint.h and fix some other #includes

7 years agoMerge pull request #223 from 4m4rOk/master
Iceman [Sat, 4 Mar 2017 12:54:44 +0000 (13:54 +0100)]
Merge pull request #223 from 4m4rOk/master

Typo fix for CmdPing

7 years agoTypo fix for CmdPing 223/head
Luca [Sat, 4 Mar 2017 12:38:57 +0000 (13:38 +0100)]
Typo fix for CmdPing

Ping successfull -> Ping successful

7 years agoMerge pull request #221 from jamchamb/clean-mfu-dump
pwpiwi [Sat, 4 Mar 2017 11:48:37 +0000 (12:48 +0100)]
Merge pull request #221 from jamchamb/clean-mfu-dump

Clean mfu dump output

7 years agomake clean_ascii a util function 221/head
James Chambers [Fri, 3 Mar 2017 23:04:58 +0000 (18:04 -0500)]
make clean_ascii a util function

7 years agoclean up unprintable characters in MFU dump output
James Chambers [Fri, 3 Mar 2017 22:38:51 +0000 (17:38 -0500)]
clean up unprintable characters in MFU dump output

7 years agoMerge pull request #220 from marshmellow42/master
pwpiwi [Wed, 1 Mar 2017 06:08:50 +0000 (07:08 +0100)]
Merge pull request #220 from marshmellow42/master

small patches and small added features listed below:

7 years agoupdate changelog 220/head
marshmellow42 [Tue, 28 Feb 2017 22:44:19 +0000 (17:44 -0500)]
update changelog

7 years agofix stt mark location bug
marshmellow42 [Tue, 28 Feb 2017 22:28:51 +0000 (17:28 -0500)]
fix stt mark location bug

add `data mtrim` to do a middle trim of the graph.

7 years agoimplement marking the second STT when detected
marshmellow42 [Tue, 28 Feb 2017 21:35:01 +0000 (16:35 -0500)]
implement marking the second STT when detected

on the graph window

7 years agoAdd 2 pre-setable markers for the graph
marshmellow42 [Tue, 28 Feb 2017 20:53:33 +0000 (15:53 -0500)]
Add 2 pre-setable markers for the graph

7 years agofix em410x XL bug
marshmellow42 [Tue, 28 Feb 2017 18:32:23 +0000 (13:32 -0500)]
fix em410x XL bug

and make it rule out more false positives.

7 years agoadjust em4x05/em4x69 command timings to...
marshmellow42 [Tue, 28 Feb 2017 18:18:52 +0000 (13:18 -0500)]
adjust em4x05/em4x69 command timings to...

better conform to datasheet.

7 years agofix STT bug for strong waves (or cleaned ones)
marshmellow42 [Tue, 28 Feb 2017 16:53:55 +0000 (11:53 -0500)]
fix STT bug for strong waves (or cleaned ones)

7 years agoAdd a retry loop to hf mf dump
marshmellow42 [Tue, 28 Feb 2017 16:09:42 +0000 (11:09 -0500)]
Add a retry loop to hf mf dump

helps get the data dumped even if positioning isn't 100% perfect.

also switched em4x05 commands to WaitUS instead of SpinDelayUs, per
@pwpiwi 's suggestion.

7 years agoMerge pull request #219 from marshmellow42/master
Iceman [Tue, 28 Feb 2017 07:00:00 +0000 (08:00 +0100)]
Merge pull request #219 from marshmellow42/master

em cleanup and fix bug in lf config [threshold] option making it not work...

7 years agoAdjust global variable name 219/head
marshmellow42 [Tue, 28 Feb 2017 04:03:55 +0000 (23:03 -0500)]
Adjust global variable name

7 years agofix for Kali Linux users (Issue #218)
pwpiwi [Mon, 27 Feb 2017 07:39:12 +0000 (08:39 +0100)]
fix for Kali Linux users (Issue #218)

7 years agoadjust timeouts on lf read/lf search to no timeout if threshold was set.
marshmellow42 [Mon, 27 Feb 2017 02:44:40 +0000 (21:44 -0500)]
adjust timeouts on lf read/lf search to no timeout if threshold was set.

NOTE: lf snoop already doesn't have a timeout...
also adjusted PRIx64 to SCNx64 in em410xwrite

7 years agoFix issues with commit 4197a3f on some linux distributions and old mingw environments...
pwpiwi [Fri, 24 Feb 2017 15:19:35 +0000 (16:19 +0100)]
Fix issues with commit 4197a3f on some linux distributions and old mingw environments (issue #217)

7 years agothe timeout on lf read makes the threshold ...
marshmellow42 [Fri, 24 Feb 2017 06:02:25 +0000 (01:02 -0500)]
the timeout on lf read makes the threshold ...

option not work as expected..  need to find a more robust option...

+ added iceman's lf_em410x_sim help text..

7 years agoMerge remote-tracking branch 'upstream/master'
Jeff Morsch [Fri, 24 Feb 2017 05:45:57 +0000 (00:45 -0500)]
Merge remote-tracking branch 'upstream/master'

7 years agoMerge remote-tracking branch 'upstream/master'
marshmellow42 [Thu, 23 Feb 2017 19:08:41 +0000 (14:08 -0500)]
Merge remote-tracking branch 'upstream/master'

Merge Head

7 years agocleanup
marshmellow42 [Thu, 23 Feb 2017 18:53:40 +0000 (13:53 -0500)]
cleanup

combine preamble searches (thanks @iceman1001)
simplify Em410xDecode
fix bug in removeParity (I made recently)
move Unique TAG ID printout to avoid confusion

7 years agoMake LUA scripting work even if proxmark3 is called from arbitrary working directory
pwpiwi [Thu, 23 Feb 2017 17:30:29 +0000 (18:30 +0100)]
Make LUA scripting work even if proxmark3 is called from arbitrary working directory
- add @gpakosz whereami library (https://github.com/gpakosz/whereami) in order to ...
- determine and set absolute paths for LUA scripts and LUA libraries

7 years agoCode cleanup:
pwpiwi [Thu, 23 Feb 2017 08:40:12 +0000 (09:40 +0100)]
Code cleanup:
- correctly using stdtypes.h printf and scanf format string macros (PRIx64 et al)
- coverity fixes to client/cmdhfmf.c
- fix linker warning re missing entry point when linking fullimage.elf

7 years agoCode cleanup:
pwpiwi [Wed, 22 Feb 2017 21:45:00 +0000 (22:45 +0100)]
Code cleanup:
- correctly use inttypes.h scanf and printf macros (PRIx64 et al)
- fix indendation warnings

7 years agoMerge pull request #216 from marshmellow42/master
pwpiwi [Wed, 22 Feb 2017 16:38:56 +0000 (17:38 +0100)]
Merge pull request #216 from marshmellow42/master

EM4x05/EM4x69 command rewrite and improvements

7 years agosmall text adjustments plus... 216/head
marshmellow42 [Wed, 22 Feb 2017 15:41:40 +0000 (10:41 -0500)]
small text adjustments plus...

small improvement to fsk clock detect + fixed a bug where it would
default to rf/16 when it couldn't find a valid one...

7 years agofix false positive psk demod with fsk wave
marshmellow42 [Wed, 22 Feb 2017 04:00:43 +0000 (23:00 -0500)]
fix false positive psk demod with fsk wave

also break out new find start of modulation routine.

7 years agoupdate changelog
marshmellow42 [Tue, 21 Feb 2017 21:57:32 +0000 (16:57 -0500)]
update changelog

7 years agoMerge pull request #215 from AdamLaurie/master
Iceman [Tue, 21 Feb 2017 18:53:52 +0000 (19:53 +0100)]
Merge pull request #215 from AdamLaurie/master

buspirate config for debricking.

7 years agobuspirate config for debricking 215/head
Adam Laurie [Tue, 21 Feb 2017 17:53:56 +0000 (17:53 +0000)]
buspirate config for debricking

7 years agosimplified lf em command structure
marshmellow42 [Tue, 21 Feb 2017 17:00:09 +0000 (12:00 -0500)]
simplified lf em command structure

WARNING changes command calling!

7 years agocleanup cmdlfem4x.h - add chip detection to ...
marshmellow42 [Tue, 21 Feb 2017 16:46:13 +0000 (11:46 -0500)]
cleanup cmdlfem4x.h - add chip detection to ...

... lf search

7 years agoadd em4x05 config printout
marshmellow42 [Tue, 21 Feb 2017 16:06:19 +0000 (11:06 -0500)]
add em4x05 config printout

7 years agoshorten em4x05 capture samples
marshmellow42 [Mon, 20 Feb 2017 22:39:39 +0000 (17:39 -0500)]
shorten em4x05 capture samples

add cap option for 4469
add sample size option for  DoAcquisition so i can limit how many
samples i want to collect.
use with DoPartialAcquisition

7 years agospeed up the em4x05 cmds by only getting 6k...
marshmellow42 [Mon, 20 Feb 2017 20:06:22 +0000 (15:06 -0500)]
speed up the em4x05 cmds by only getting 6k...

samples back

7 years agoMerge pull request #214 from jamchamb/fix-hf-reader
Iceman [Mon, 20 Feb 2017 20:05:35 +0000 (21:05 +0100)]
Merge pull request #214 from jamchamb/fix-hf-reader

Fix recvLen variable name in hf_reader

7 years agofix recvLen variable name in hf_reader 214/head
James Chambers [Mon, 20 Feb 2017 19:31:21 +0000 (14:31 -0500)]
fix recvLen variable name in hf_reader

7 years agoadd em4x05 info command
marshmellow42 [Mon, 20 Feb 2017 14:50:00 +0000 (09:50 -0500)]
add em4x05 info command

plus some minor adjustments
and added a quick em4x05 test:
bool EM4x05Block0Test(uint32_t *wordData)
if successful very likely the tag is an em4x05 or compatible...

7 years agofix dump output
marshmellow42 [Mon, 20 Feb 2017 02:31:46 +0000 (21:31 -0500)]
fix dump output

7 years agoa little cleanup
marshmellow42 [Mon, 20 Feb 2017 01:47:45 +0000 (20:47 -0500)]
a little cleanup

7 years ago@iceman1001 s idea to output failure report
marshmellow42 [Fri, 17 Feb 2017 19:48:19 +0000 (14:48 -0500)]
@iceman1001 s idea to output failure report

7 years agoadd psk to em4x05 reads and tweak psk demod
marshmellow42 [Fri, 17 Feb 2017 19:40:40 +0000 (14:40 -0500)]
add psk to em4x05 reads and tweak psk demod

7 years agominor fixes for FSK demod
marshmellow42 [Fri, 17 Feb 2017 17:59:35 +0000 (12:59 -0500)]
minor fixes for FSK demod

works better with EM4x03 and t55x7 tags (in theory)...

7 years agoem4x05 getting better
marshmellow42 [Fri, 17 Feb 2017 06:33:27 +0000 (01:33 -0500)]
em4x05 getting better

got the read/dump cmds working pretty well
some tweaking still left to do.

7 years agoa couple em4x05 fixes.
marshmellow42 [Thu, 16 Feb 2017 18:57:14 +0000 (13:57 -0500)]
a couple em4x05 fixes.

7 years agoEM4x05/EM4x69 continued + a couple of icemans utils.
marshmellow42 [Thu, 16 Feb 2017 04:27:15 +0000 (23:27 -0500)]
EM4x05/EM4x69 continued  + a couple of icemans utils.

7 years agocouple q5 fixes + continue with em4x05 em4x69..
marshmellow42 [Wed, 15 Feb 2017 04:42:55 +0000 (23:42 -0500)]
couple q5 fixes + continue  with em4x05 em4x69..

.. readword demods
(not tested)  still a work in progress

7 years agoupdate em4x05/em4x69 cmds
marshmellow42 [Mon, 13 Feb 2017 04:59:44 +0000 (23:59 -0500)]
update em4x05/em4x69 cmds

@iceman1001 s updates + some of my own.
still more to do:
-auto demod responses
-figure out config block
-figure out block 0 info / serial # in block 1
-figure out block 3 protection data
-add dump all blocks cmd

7 years agoMerge pull request #211 from marshmellow42/master
pwpiwi [Wed, 8 Feb 2017 20:49:26 +0000 (21:49 +0100)]
Merge pull request #211 from marshmellow42/master

Add Flag for compile warnings, lf cotag read by iceman

7 years agoupdate changelog 211/head
marshmellow42 [Sat, 4 Feb 2017 21:10:26 +0000 (16:10 -0500)]
update changelog

7 years agoAdd @Iceman1001 s cotag read
marshmellow42 [Fri, 3 Feb 2017 05:14:34 +0000 (00:14 -0500)]
Add @Iceman1001 s cotag read

also needed to include some of icemans timer additions.

7 years agoadd check for no wave in graphbuffer prior to...
marshmellow42 [Wed, 1 Feb 2017 20:39:10 +0000 (15:39 -0500)]
add check for no wave in graphbuffer prior to...

hitag lf search check

7 years agoMerge remote-tracking branch 'upstream/master'
marshmellow42 [Tue, 31 Jan 2017 04:20:55 +0000 (23:20 -0500)]
Merge remote-tracking branch 'upstream/master'

7 years agoflag needed for some compile environments
marshmellow42 [Tue, 31 Jan 2017 04:13:22 +0000 (23:13 -0500)]
flag needed for some compile environments

used for 'z' and 'l' in printf commands.

7 years agoMerge pull request #209 from micolous/14a-random-nonce
pwpiwi [Sat, 28 Jan 2017 16:11:13 +0000 (17:11 +0100)]
Merge pull request #209 from micolous/14a-random-nonce

Adds random nonce (r) option to `hf mf sim`.

7 years agohf mf sim: Multiple fixes from review of PR #209. 209/head
Michael Farrell [Thu, 26 Jan 2017 09:27:08 +0000 (20:27 +1100)]
hf mf sim: Multiple fixes from review of PR #209.

- Don't increment the nonce when random mode is disabled (this breaks the
  standard attack).

- Don't attempt the standard attack when random mode is enabled (there's no
  point as it won't work, per comments from @pwpiwi).

- Attempt the moebius attack if the standard attack fails.

7 years agoMerge pull request #208 from marshmellow42/master
pwpiwi [Thu, 26 Jan 2017 08:10:38 +0000 (09:10 +0100)]
Merge pull request #208 from marshmellow42/master

bug fixes - LF rawdemod am and ST

7 years agoAdds random nonce (r) option to `hf mf sim`.
Michael Farrell [Thu, 26 Jan 2017 07:16:10 +0000 (18:16 +1100)]
Adds random nonce (r) option to `hf mf sim`.

This makes the PM3 generate pseudo-random nonces rather than sequential
nonces, to make it act a bit more like a "real" MFC card.  A reader would
otherwise be able to detect the PM3 probing based on the predictable nonces
and throw different authentication challenges (or refuse to authenticate at
all).

The code includes an implementation of a rand-like function (prand), similar
to the one from libc, which is seeded automatically based on the time it
takes between the PM3 starting up and the first call to the RNG.

This isn't cryptographically random, but should be "good enough" to be able
to evade basic detection.

7 years agobug fixes - LF rawdemod am and ST 208/head
marshmellow42 [Fri, 20 Jan 2017 05:55:40 +0000 (00:55 -0500)]
bug fixes - LF rawdemod am and ST

rawdemod parameter length test too short for help text
amp option should amp prior to ST check
ST check adjusted to make room for rf/32 clock instead of rf/64 (so will
have extra room if clock is higher than 32)
ST check improved to better account for low drift

8 years agoMerge pull request #202 from marshmellow42/master
Iceman [Mon, 19 Dec 2016 15:09:58 +0000 (16:09 +0100)]
Merge pull request #202 from marshmellow42/master

add hitag2 uid read and fixes for iclass write

8 years agofixed lf antenna left on bug && some iclass ... 202/head
marshmellow42 [Mon, 19 Dec 2016 14:45:23 +0000 (09:45 -0500)]
fixed lf antenna left on bug && some iclass ...

output cleanup by @iceman1001

8 years agoa few bug fixes with adding hitag detection to...
marshmellow42 [Fri, 16 Dec 2016 19:04:39 +0000 (14:04 -0500)]
a few bug fixes with adding hitag detection to...

`lf search`

8 years agoMerge remote-tracking branch 'upstream/master'
marshmellow42 [Tue, 29 Nov 2016 20:09:27 +0000 (15:09 -0500)]
Merge remote-tracking branch 'upstream/master'

8 years agofix iclass write
marshmellow42 [Tue, 29 Nov 2016 19:59:14 +0000 (14:59 -0500)]
fix iclass write

thanks to prof_abrasive && go_tus

8 years agoMerge pull request #119 from marshmellow42/pm3+reveng
Iceman [Sat, 8 Oct 2016 17:18:14 +0000 (19:18 +0200)]
Merge pull request #119 from marshmellow42/pm3+reveng

add reveng 1.30 source to PM3 for CRC calculations & searches

8 years agoFixed all "misleading-indentation" warnings (fixes #187).
ikarus [Mon, 26 Sep 2016 19:15:49 +0000 (21:15 +0200)]
Fixed all "misleading-indentation" warnings (fixes #187).

8 years agoRevert "Do not treat gcc's "misleading-indentation" warning as error."
ikarus [Mon, 26 Sep 2016 18:39:31 +0000 (20:39 +0200)]
Revert "Do not treat gcc's "misleading-indentation" warning as error."

This reverts commit fd4f21b766a715303f0b1436c9970f5965e644dc.

8 years agoDo not treat gcc's "misleading-indentation" warning as error (fixes #187).
ikarus [Mon, 26 Sep 2016 17:21:01 +0000 (19:21 +0200)]
Do not treat gcc's "misleading-indentation" warning as error (fixes #187).

8 years agoMerge pull request #197 from menshiyun/test-pr
Iceman [Sun, 25 Sep 2016 06:46:59 +0000 (08:46 +0200)]
Merge pull request #197 from menshiyun/test-pr

minor fix in client/makefile
extra option to LDLIBS is not needed for mingw env as of now. Might be in the future.

8 years agofix client/Makefile 197/head
menshiyun [Sun, 25 Sep 2016 06:32:06 +0000 (14:32 +0800)]
fix client/Makefile

8 years agofix client/Makefile
menshiyun [Sun, 25 Sep 2016 06:26:11 +0000 (14:26 +0800)]
fix client/Makefile

8 years agotest-pr
menshiyun [Sat, 24 Sep 2016 04:56:08 +0000 (12:56 +0800)]
test-pr

8 years agoMerge pull request #196 from k02a/patch-5
Iceman [Fri, 23 Sep 2016 11:04:07 +0000 (13:04 +0200)]
Merge pull request #196 from k02a/patch-5

Code cleanup,

8 years agoCode cleanup 196/head
Johnny Bengtsson [Wed, 14 Sep 2016 11:27:24 +0000 (13:27 +0200)]
Code cleanup

Some variable type changes.

8 years agoMerge pull request #195 from k02a/patch-4
Iceman [Tue, 13 Sep 2016 12:25:02 +0000 (14:25 +0200)]
Merge pull request #195 from k02a/patch-4

Warning removal fix

8 years agoWarning removal fix 195/head
Johnny Bengtsson [Tue, 13 Sep 2016 10:21:46 +0000 (12:21 +0200)]
Warning removal fix

Minor fix of data type corrections.

gcc -std=c99 -I. -I../include -I../common -I../zlib -I/opt/local/include -I../liblua -Wall  -g -O4 -DHAVE_GUI -DZ_SOLO -DZ_PREFIX -DNO_GZIP -DZLIB_PM3_TUNED  -c -o obj/fpga_compress.o fpga_compress.c
fpga_compress.c: I funktion "zlib_compress":
fpga_compress.c:90:20: varning: format "%lu" förväntar sig argument av typen "long unsigned int", men argument 3 har typen "int" [-Wformat=]
    fprintf(stderr, "Input files too big (total > %lu bytes). These are probably not PM3 FPGA config files.\n", num_infiles*FPGA_CONF
                    ^
fpga_compress.c:142:18: varning: format "%lu" förväntar sig argument av typen "long unsigned int", men argument 3 har typen "uint32_t {även unsigned int}" [-Wformat=]
  fprintf(stderr, "compressed %lu input bytes to %lu output bytes\n", i, compressed_fpga_stream.total_out);

Impressum, Datenschutz