X-Git-Url: https://git.llucax.com/z.facultad/75.74/practicos.git/blobdiff_plain/ac1d74a402f344ad8135f125cbac73ecda46172e..91fb3ca6b56328c626dabb35e2de9a5ae525b1b1:/practicas/pipi/src/devque.cpp?ds=sidebyside diff --git a/practicas/pipi/src/devque.cpp b/practicas/pipi/src/devque.cpp index 593f663..1e812ff 100644 --- a/practicas/pipi/src/devque.cpp +++ b/practicas/pipi/src/devque.cpp @@ -40,7 +40,7 @@ void DevQue::transmit(const std::string& data, const mac_type& mac) f->size = data.size(); memcpy(f->frame, data.data(), data.size()); int res = msgsnd(que_id, f, mtu + sizeof(size_t), 0); -#ifdef DEBUG2 +#ifdef DEBUG_QUE std::cout << "DevQue[" << que_id << "]::transmit(msgtype/mac = " << f->mac << ", size = " << f->size << ")\n"; #endif @@ -75,7 +75,7 @@ std::string DevQue::receive(mac_type& mac) throw (std::runtime_error) if (mac == 0) mac = f->mac; free(f); -#ifdef DEBUG2 +#ifdef DEBUG_QUE std::cout << "DevQue[" << que_id << "]::receive(msgtype/mac = " << mac << ", size = " << s.size() << ")\n"; #endif