anchor.diff:  
       case mnesia:dirty_read(devices, DevEUI) of
           [] ->
  -            lager:error("Unknown DevEUI ~s", [binary_to_hex(DevEUI)]),
  +            lager:warning("Unknown DevEUI ~s", [binary_to_hex(DevEUI)]),
               {error, {unknown_deveui, DevEUI}};
           [D] ->
               case aes_cmac:aes_cmac(D#device.appkey, Msg, 4) of
  
positive.code:     <<MType:3, _:5, _/binary>> = Msg,
      case mnesia:dirty_read(gateways, MAC) of
          [] ->
              lager:error("Unknown MAC ~s", [binary_to_hex(MAC)]),
              {error, {unknown_mac, MAC}};
          [G] ->
              process_frame1(G#gateway.netid, MAC, RxQ, RF, MType, Msg, MIC)
  
negative.code:                     LastFCnt = (L#link.fcntup + N) band 16#FFFFFFFF,
                      {ok, L#link{fcntup = LastFCnt}};
                  BigN ->
                      lager:warning("~w has a large FCnt gap: last ~b, current ~b", [DevAddr, L#link.fcntup, FCnt]),
                      {error, {fcnt_gap_too_large, BigN}}
              end
      end.
  