Advertisement
bueddl

Untitled

Dec 3rd, 2015
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.34 KB | None | 0 0
  1.  
  2.     // C++ Stream style
  3.     log::info() << "Forking process, child pid = " << pid << " (parent pid = " << ppid << ")" << std::endl;
  4.  
  5.     // C++ variadic template
  6.     log::info("Forking process, child pid = ", pid, " (parent pid = ", ppid, ")\n");
  7.  
  8.     // C printf()-family style
  9.     log::info("Forking process, child pid = %d (parent pid = %d)\n", pid, ppid);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement